This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Originally posted by Anas El-Abboud: would you tell me the way i can make : get() in class to parameters in another class without set() in the last one ?
If my understanding is correct, you're trying to code a class that has getter methods that will get values in another another class. This isn't the normal way that we do things. Every POJO has its own set of getter & setter methods to allow another class to access/change its values. Not the other way round, as what you're trying to do.
thanks Cheng ! , i know that is not the normal way.. but in a sender class it was sending values to the receiver all the methods in the first setting values were had a getter method but in the second class ! i donn't know if that was right .but ! thanks again