posted 14 years ago
Thanks for both ideas.
I am well aware that I could use the string 'blue' in both places.
The example i gave is a very trivial one for explanation purposes only and my real life problem has more than two objects, they are not cars and shirts either :-).
I am currently making a separate string bean and using that for both objects as the second poster (David) said, but was wondering if my is possible (or not) to do what I asked, call the setter of one bean, passing the getter of another bean as a parameter.
There are only 10 types of people in this world... Those who understand binary and those who don't.