Exchange of field info between Objects of same class

Hi, I am a beginner in Java and this question might seem trivial.....I just wanted to know if there is a way to exchange field information between 2 objects of same class. Any help/comment regarding this is appreciated.Thanks, Pradeep
[262 byte] By [pradeepgbhata] at [2007-10-3 8:21:56]
# 1
You need to be more specific. If the field is public then you can access it like so:int a = someObject.someField;Otherwise, you need to make a method that returns that value.
CaptainMorgan08a at 2007-7-15 3:27:47 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
[url http://forum.java.sun.com/thread.jspa?threadID=780517&tstart=0]Crosspost.[/url]
CaptainMorgan08a at 2007-7-15 3:27:47 > top of Java-index,Java HotSpot Virtual Machine,Specifications...