Results 1 to 4 of 4
  1. #1
    GrumpyBum is offline Member
    Join Date
    Apr 2012
    Posts
    19
    Rep Power
    0

    Default Data Between Classes

    If I have an array in class x and need to access it in class y then how can I make this array accessible in the other class?

  2. #2
    mwr1976 is offline Senior Member
    Join Date
    Oct 2011
    Posts
    106
    Rep Power
    0

    Default Re: Data Between Classes

    you need to look at accessor methods. Here's a basic tutorial:Accessors and Mutators

  3. #3
    GrumpyBum is offline Member
    Join Date
    Apr 2012
    Posts
    19
    Rep Power
    0

    Default Re: Data Between Classes

    Thank you, I will check it out

  4. #4
    GrumpyBum is offline Member
    Join Date
    Apr 2012
    Posts
    19
    Rep Power
    0

    Default Re: Data Between Classes

    I have worked this out while moving through the documentation in the link thanks.
    Was very helpful

Similar Threads

  1. Replies: 13
    Last Post: 07-20-2011, 08:45 PM
  2. Replies: 4
    Last Post: 04-17-2011, 01:15 PM
  3. Passing data between 3 classes
    By tocakt in forum New To Java
    Replies: 3
    Last Post: 04-11-2011, 11:50 PM
  4. How to access private data types from public classes?
    By kevzspeare in forum New To Java
    Replies: 3
    Last Post: 03-07-2009, 05:19 AM
  5. Need help passing data between classes
    By bri1547 in forum New To Java
    Replies: 3
    Last Post: 07-21-2008, 05:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •