Pls helpme in replacing set and get methods with List

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2008
Posts: 8
Reputation: shobha1335 is an unknown quantity at this point 
Solved Threads: 0
shobha1335 shobha1335 is offline Offline
Newbie Poster

Pls helpme in replacing set and get methods with List

 
0
  #1
Jul 16th, 2008
I have

onebean.java file having
  1. private String destinationOne;
  2. private String destinationTwo;
  3. private String destinationThree;
  4. private String destinationFour;
  5. private String destinationFive;
  6. 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.
Last edited by Tekmaven; Jul 16th, 2008 at 3:02 pm. Reason: Code tags
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 1,718
Reputation: javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all 
Solved Threads: 230
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is offline Offline
Posting Virtuoso

Re: Pls helpme in replacing set and get methods with List

 
0
  #2
Jul 16th, 2008
Check out my New Bike at my Public Profile at the "About Me" tab
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum


Views: 698 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC