This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create a table

 
John Lincoln
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to create a table, which stores all the information.
For example if i have a class like
public class person {
public string name;
public int ssn;
public int age;
}
What i want to do is i want extract all the information from the object and store in the data structure like:
Name SSN Age
XXX YYY Z
UUU WWW q
I want this data structure to be ordered.
can some one tell me , how to do this.
Please help .
Thanks for your time
kumar.
 
Mark Herschberg
Sheriff
Posts: 6037
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From your other comments, I assume that by "table" you really mean data structure, as opposed to a GUI table, like JTable.
I suggest you check out Java Collections, which has a wealth of data structures for this type of purpose.
--Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic