I feel kind of stupid asking this basic of a question but here it goes...
so i have an instance variable private int currentElement;
and it's changed many time through the program let's say to 0 then 1 then 2. Now I need to change the currentElement to "undefined" however when i try and declare it as null. Is this because it is a primitive type so I can't declare it as null after initializing the variable?
2007-01-26
16:23:48
·
1 answers
·
asked by
michaelmgkdn
2
in
Computers & Internet
➔ Programming & Design