Results 1 to 2 of 2
  1. #1
    shobha2k8 is offline Member
    Join Date
    May 2008
    Posts
    4
    Rep Power
    0

    Default 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.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

Similar Threads

  1. replacing array values
    By Jononomous in forum New To Java
    Replies: 1
    Last Post: 05-22-2008, 03:27 PM
  2. Replies: 1
    Last Post: 05-07-2008, 01:19 AM
  3. Replacing at an index
    By bugger in forum New To Java
    Replies: 2
    Last Post: 01-29-2008, 06:33 AM
  4. splitting string and replacing
    By itsme in forum New To Java
    Replies: 1
    Last Post: 12-11-2007, 03:08 PM
  5. methods
    By Zensai in forum New To Java
    Replies: 10
    Last Post: 12-03-2007, 05:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •