1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Pls helpme in replacing set and get methods with List

Discussion in 'Java' started by shobha2k8, Jul 16, 2008.

  1. shobha2k8

    shobha2k8 New Member

    May 22, 2008
    Likes Received:
    Trophy Points:
    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.

Share This Page