File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How To Manually Set JavaBean Values to Create a Collection?

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ladies and Gentlemen, I did some work. How about what I come up with below. I have a Java class that supplies data manually and creates a Collection of beans. And I define a JavaBean in another class.

Am I on the right track to manually code data into a Collection of beans?

and my JavaBean looks like:

[ August 30, 2005: Message edited by: JiaPei Jen ]
 
Jeyakumar Balasubramanian
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is somewhat ok.

Declare the 2 members of bean as private and make the following changes in bold in ur code.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic