Thankyou so much for your replies! got the first method working properly.
Now I was going to start a new thread for another question, but since this one is still new i'll just post it in here.
I've had a go at another method of the program (Using StringTokenizer, and the Integer.parseInt() method, which i've kinda never used before).
This time I have 4 errors when I try to compile, that i cannot seem to fix. I'll post the errors first and then the code.
Prog3test2.java:30: invalid method declaration; return type required
public tokenize(String in)
(I dont understand why i have to return something to the main, when all im doing is setting values to s1,s2,s3)
Prog3test2.java:32: cannot resolve symbol S
tringTokenizer st = new StringTokenizer(in);
Prog3test2.java:32: cannot resolve symbol
StringTokenizer st = new S
Prog3test2.java:43: cannot resolve symbol t
[ May 31, 2004: Message edited by: Logan Saturnius ]