View Single Post
  #1 (permalink)  
Old 01-28-2008, 07:28 AM
PAffiliates PAffiliates is offline
Member
 
Join Date: Jan 2008
Posts: 1
PAffiliates is on a distinguished road
Java Array of Structure
Greetings! I am new to JAVA. I'm coming over from VB .NET. In VB I was introduced to an array of a structure. It came in handy and I was wondering if it was possible in JAVA. I've tried to find an answer via Google, but can't seem to understand most of the potential examples. My goal is to load several pieces of data of different types into an array and be able to index them all by 1 number per group. So for a simple example I would use firstName, lastName, and age. These would be loaded into the array. I would index them all with the same number. array[0].firstName, array[0].lastname, array[0].age. I'm sorry the syntax is probably incorrect for JAVA, but hopefully you understand what I'm getting at. Any help would be greatly appreciated!!!

Thanks
Reply With Quote
Sponsored Links