Pls helpme in replacing set and get methods with List

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

  1. shobha2k8

    shobha2k8 New Member

    Joined:
    May 22, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice