P
Peter van der Goes
It's probably something obvious, but this has me stumped:
Very simple code extracted from a proper main()
int x = 65;
int y = 55;
if (x > y)
int ans = x + y;
Errors:
E:\CIT1613\HelloWorld.java:17: '.class' expected
int ans = x + y;
^
E:\CIT1613\HelloWorld.java:17: not a statement
int ans = x + y;
Line 17 is int ans = x + y;
?!?
Very simple code extracted from a proper main()
int x = 65;
int y = 55;
if (x > y)
int ans = x + y;
Errors:
E:\CIT1613\HelloWorld.java:17: '.class' expected
int ans = x + y;
^
E:\CIT1613\HelloWorld.java:17: not a statement
int ans = x + y;
Line 17 is int ans = x + y;
?!?