well, my question is simply, for example i wanna to catch something in a string:
String name = "RobertTio";
ok i wanna to get rid of robert so i can get the word behind it, do it have any way to do it?
Printable View
well, my question is simply, for example i wanna to catch something in a string:
String name = "RobertTio";
ok i wanna to get rid of robert so i can get the word behind it, do it have any way to do it?
I'm pretty sure there is a method for doing that.
Probably would hide something like that in the String class so no one can find it.
BUMPppppppppppppppppp
Not necessarily hidden... try reading through the relevant Java Tutorials trail.
LOL!!!
ok so i apologize..... I can sometimes be sarcastic....
THE METHOD YOU WANT IS IN PLAIN SIGHT IN THE STRING CLASS!!!
it is call indexOf and takes a String (the string you want to search for)