Bye,
Nicola
Bye,
Nicola
Joanne
jerry cronin wrote:What do you mean "current e scanner are duplicate variables."? I added in (Exception e) as well but im still getting the same error
Matthew Brown wrote:
jerry cronin wrote:What do you mean "current e scanner are duplicate variables."? I added in (Exception e) as well but im still getting the same error
Lines 6 and 9 both declare a variable called current.
The biggest problem, though, and the one giving you this particular error, is the one Joanne pointed out.
J Solomon wrote:Line 6 should just declare the var as follows (you are just making room on the stack):
TinyToken current;
and then line 9 should assign some value to the current reference variable:
current = scanner.nextToken();
Joanne
Joanne
jerry cronin wrote:Here it is with tags!
I've fixed all the above errors I think, now I'm getting this last one
TinyTest.java:36: incompatible types
found : void
required: TinyTest
TinyTest test = new TinyTest().tryCatch();
Does this mean I must change the return type of tryCatch? And change the way its implemented