![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Generators? Wrapper classes? Wow, sounds too hardcore for me.. ;) Peter, I think Matt is already being very specific by giving u the link to the book itself. Do you want him to even look for the exact page where the exact problem is for you? Come on, it's your assignment, do some work please. An advice for that little problem of "make me forget the little I have learnt", write watever u have learnt down in a journal or a paper ;). Then u won't forget them. From what i can see, these methods are for : charAt() - to get the specific character from the string, and possibly the array, and compare both to see whether it's equal or not.
indexOf() - well this is just to save you from looking at redundant characters, rather than checking every characters from the *beginning* of the array of either your string or character list (you can store your character list as a string, or well, an array), you just use indexOf() to get the first occurence of the character. > I would like to complete this problem in the simplest way possible... > P/S(Matt Gerans could u be more specific...as the book seems more likely to confuse me more and make me forget the little I have learnt....)
> > - mfg > > > > > i.e. java CommandLine "all java applications contains a static main method."
> > > The code I have so far... > > > class CommandLine{ > > > // MY PROBLEM HOW TO USE THE STRING ATTRIBUTES AND ARRAY ATTRIBUTES > > > What should I do before I can call the method to main????? > > >
Replies:
|
Sponsored Links
|