954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Read from an array

[IMG]http://vedium.net/java.jpg[/IMG]

I have an array in a.java, den b.java is suppose to collect data and put inside the array in a.java. den I need c.java to read from the array to see wad b.java has entered.

If i use "a ent = new a;" I would get a blank array again...so how do i read from c.java to see what b.java has put in a.java's array?

Thanks in advance

csthiang
Newbie Poster
2 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

[IMG]http://vedium.net/java.jpg[/IMG]

I have an array in a.java, den b.java is suppose to collect data and put inside the array in a.java. den I need c.java to read from the array to see wad b.java has entered.

If i use "a ent = new a;" I would get a blank array again...so how do i read from c.java to see what b.java has put in a.java's array?

Thanks in advance

Why on earth wud u want to do all that 4? Do it all within one class and create methods if needs b.

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 
Why on earth wud u want to do all that 4? Do it all within one class and create methods if needs b.


each file itself is a JInternalFrame....

csthiang
Newbie Poster
2 posts since Jan 2006
Reputation Points: 10
Solved Threads: 0
 

a = b? That's the only way I know of sharing references.

server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
 

What about using events? There is more code, but it would be effective. Especially in a gui application.

hooknc
Posting Whiz in Training
219 posts since Aug 2005
Reputation Points: 11
Solved Threads: 8
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You