Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem with fianl & static variable.


  • From: pratap@xxxxxxxxxxxxxxx (Pratap Malani, Gurgaon)
  • Subject: problem with fianl & static variable.
  • Date: Sat, 29 Jan 2000 12:58:09 +0530

Hello all,
This could be a simple problem but I m unable to understand. These are the
lines of code I have written :
Void function()
{
	final EditBox edit = this ;  // EditBox is my class with extends
JTextBox.
	static int once;
once = 1;
..........
..........
}

when I compile it I get the following error.

EditBox.java:57: '}' expected.
                final EditBox edit = this ;
                                           ^
EditBox.java:58: Statement expected.
                static int once;
                ^
EditBox.java:59: Identifier expected.
                once = 1;
                    ^
3 errors

I cannot figure out what is wrong. Can anyone please help me.
Thanks in advance.

Bye.
With Warm Regards And Best Wishes.
Pratap Malani.


---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx