error Identifier expected?
Hi
Some 10 years ago I used to write Java programs effieciently, then stopped due to some circumstances.
Now trying to recap java again.
My PC has Win 7 (32 bit) with JDK 1.7.0_03 installed and have also put the path of "bin" folder in the PATH variable, other wise javac was not working.
Anyways, I wrote a simple code to test and it gave me some error which I could not understand WHY?
Please advice as it gives me "error <identifier> expected at line 9
1. public class tst2 {
2. public static void main(String[] args) {
3. System.out.println("HI");
4. }
5.
6.
7. public class tstinner {
8. int a1, b1;
9. a1 = b1 = 6;
10. }
11.
12.}
I have put the type "int" and then initialise the var a1 & b1 in a single line which is valid I guess, then why is it giving me the error?
thanks
Re: error Identifier expected?
Asked and answered at java-forums.org
Re: error Identifier expected?
Quote:
Originally Posted by
pbrockway2
Thanks for the help...