For one thing, you should use the equals( Object anObject ) or the equalsIgnoreCase( String aString ) methods in the String class if you're comparing Strings because == only works for primitives. I'm not sure what you're trying to do with the substring method, it seems to me that using the toCharArray() method in the String class and a loop would be helpful, though.
__________________
"Even if you prove me wrong, I'm not going to believe you." - A. McGill
Last edited by firebirdta; 03-06-2004 at 06:55 PM..
|