Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to check if an object has been set?

Status
Not open for further replies.

developerinlondon

Programmer
Jan 11, 2003
196
GB
i am quite new to Java and just porting to it from other language, but i cant seem to find any good books/documentation on this language. I am trying to test if a variable exists or not? does anyone know how?

eg

if (!exists(this.fh)) {
this.fh = ...;
}

except 'exists' doesnt work in java!
 
That make no sense.

Variables in Java are set at compile, not runtime.

You can find good tutorials aj Sun's website.

Cheers,

Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top