On 1 April 2011 21:24, trans <transfire@gmail.com> wrote:
This is not the right group for you question. Put android aside and learn Java basics, variable scopes etc. then you realise that you in fact *created* (and then initialized) variable local to constructor.. Once constructor is done this variable is gone. If you want to init class member, do not "cover" it with local variable like you did (do not declare, just assign). In case (not your) this is intentional, learn about "this" keyword. Again -> unsubscribe from here, go read some Java books, courses, tutorials whatever, and get back here after you got some elementary knowledge.
Regards,
Marcin Orlowski
Tray Agenda - keep you daily schedule handy...
WebnetMobile on Facebook and Twitter
-- I don't really get Java. I'm trying to define a public array member,
Why?
This is not the right group for you question. Put android aside and learn Java basics, variable scopes etc. then you realise that you in fact *created* (and then initialized) variable local to constructor.. Once constructor is done this variable is gone. If you want to init class member, do not "cover" it with local variable like you did (do not declare, just assign). In case (not your) this is intentional, learn about "this" keyword. Again -> unsubscribe from here, go read some Java books, courses, tutorials whatever, and get back here after you got some elementary knowledge.
Regards,
Marcin Orlowski
Tray Agenda - keep you daily schedule handy...
WebnetMobile on Facebook and Twitter
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en