The class that wants to access the  variables from the other class can only
access them through an instance of the class! (or if the class Inherit from
the Cau_1.. Cau_10 classes)

  regards,


On 4/1/08, LE THANH TUNG <[EMAIL PROTECTED]> wrote:
>
> Hi !
>
> I have 10 classes :
>
> Cau_1.java containing variable char Cau_1_Answer
> Cau_2.java containing variable char Cau_2_Answer
> ....
> Cau_10.java containing variable char Cau_10_Answer
>
> and another class with char[] AnswerList = char[]{Cau_1_Answer,
> Cau_2_Answer,...,Cau_10_Answer}
>
> Why does the class with AnswerList get error *can not resolve* *Cau_1_Answer,
> can not resolve Cau_2_Answer..*.?
>
> I keep all the default modifier because they are in the same package. Even
> I change in public, it doesn't work either ?
>
> What I did wrong and how to resolve ? Thanks for help !
>
> --
> Many thanks and regards
> LÊ THANH TÙNG
> Da Nang, Vietnam
> >
>


-- 
Pepel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to