Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Luke Glazebrook
13,564 PointsData Structures in Java
Hey guys!
I am wanting to write a piece of software which acts as a ATM machine. I am wanting to store their information in a data structure such as a Visual Basic "Record" type-structure.
Do any of you guys know the best way to do this?
Thank you for all the help!
-Luke
1 Answer

Yongshuo Wang
5,500 PointsHi,
In java, everywhere is class, so u can represent the ATM as a class with fields and methods. Fields will be the data information. Methods will be the what you can do to the data. I hope this can help you.
Luke Glazebrook
13,564 PointsLuke Glazebrook
13,564 PointsI don't know why but I never even thought about this! Thank you for the answer Yongshuo!