Get your CodeRanch badge!*
The moose likes Beginning Java and the fly likes Need help extending a program. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Need help extending a program." Watch "Need help extending a program." New topic
Author

Need help extending a program.

Logan Saturnius
Greenhorn

Joined: May 27, 2004
Posts: 18
Hi,

I've written a program that accepts a string of characters from the user as input and then filters it through an array (ASCII values of lower case alphabet) to find out how many times each letter occurs, but now I have reprompt the user to enter more input (in the form of a word) and then search the the users Original input to see how many times the word appears within it :roll:
I know that I will have to create another method to re-prompt the user for more input, but would I also have to create another method for another array containing the original string to search through? or there some easier way that im missing here.



-thanks
Logan Saturnius
Greenhorn

Joined: May 27, 2004
Posts: 18
I had a go at it but i got the following error:
Esception in thread "main" java.lang.ArrayIndexOutOfBoundsException
at Assignment2prog2.alphabettwo(Assignment2prog2.java:57)
at Assignment2prog2.main(Assignment2prog2prog2.java:76)
I really really need help solving this
-thanks

Logan Saturnius
Greenhorn

Joined: May 27, 2004
Posts: 18
nevermind i got it working a different way
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help extending a program.
 
Similar Threads
Can somebody show me how to implement buttons?
Threads
Fixing a bug on Adding & Deleting an Array index
prog of multiple inputs
Need Help With Caesar Shift