Hi All,
Im trying to execute simple code and Im not able to compile it. I dont see any errors in the code.
The error that I get while Compiling is
C:\Test
Java>javac Demowhile.java
Demowhile.java:7: '.class' expected
while (int i < 10)
^
Demowhile.java:12: ')' expected
}
^
2 errors
the code in line 7 & 12 looks fine. Please assist