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
- Follow-Ups:
- problem with fianl & static variable.
- From: Benjamin Johnston
- problem with fianl & static variable.
- From: Abhishek sharan
- problem with fianl & static variable.
- From: deepesh
- problem with fianl & static variable.
- Prev by Date: Swing text area append problem
- Next by Date: Exiting the VM automatically (without System.exit())
- Previous by thread: Pls. suggest a free Java Editor / IDE for Win 95/NT
- Next by thread: problem with fianl & static variable.
- Index(es):