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: s355171@xxxxxxxxxxxxxxxxx (Benjamin Johnston)
  • Subject: problem with fianl & static variable.
  • Date: Sun, 30 Jan 2000 20:55:38 +1000

> Void function()
void should be lowercase
> {
> final EditBox edit = this ;  // EditBox is my class with extends
Why would you want to do something like that?
If you want to use "this" in an innerclass, instead of this.whatever() you
call EditBox.whatever().

But using "this" probably isn't the cause of the reported error for that
line... the error with static on the next line is probably causing the
problems.

> static int once;
you cannot have a static variable inside a function (put the variable
outside the function)

> once = 1;
> ..........
> ..........
> }


-Benjamin Johnston
s355171@xxxxxxxxxxxxxxxxx



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