Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   Pls helpme in replacing set and get methods with List (http://www.go4expert.com/forums/pls-helpme-replacing-set-methods-list-t12138/)

shobha2k8 16Jul2008 13:05

Pls helpme in replacing set and get methods with List
 
I have

onebean.java file having

private String destinationOne;
private String destinationTwo;
private String destinationThree;
private String destinationFour;
private String destinationFive;
private String destinationSix;

and the corresponding set and get methods.

and Im using these set and get methods in another java file.

Here in onebean.java we have to implement the destinations as a list rather than individual destinationOne, etc fields.

Anyone of you please help me in doing this.

Thanks alot.


All times are GMT +5.5. The time now is 08:05.