Bookmark Topic Watch Topic
  • New Topic

problem with accessing another class's image array

 
nurichan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
stituation: i have 2 classes, A and B. i need to use B's image array in A so i created a B object, obj.

using obj.imageArray[j][k] in my A class but when i make, i get this error msg: imageArray has private access in B class.

my image array's is public static n i'm calling it from a public void method in A class.

anyone can help me with this problem? thanks all in advance!
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
peg peg

Welcome to Javaranch! We don't have too many rules around here but we do have a Naming Policy. Please adjust your display name to meet these requirements. Specifically, Peg can be in there, but not both first and last. You can change your display name by clicking here

Thanks for your cooporation.
[ March 23, 2005: Message edited by: Gregg Bolinger ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is a duplicate post, but because of the name change request I am just closing it for now instead of moving it to the Trash Can.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!