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

    Default Pls helpme in replacing set and get methods with List

    I have 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 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
    Colombo, Sri Lanka
    Blog Entries
    Rep Power

Similar Threads

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