Results 1 to 2 of 2
  1. #1
    anistala is offline Member
    Join Date
    Feb 2013
    Location
    Novi, MI
    Posts
    1
    Rep Power
    0

    Default GUI to ArrayList to File

    Hi, I have rudimentary Java knowledge and experience but I am currently working on a program that requires the following:

    I have created a Student object with 4 parameters: String firstName, String lastName, String pin, String description

    I want to create a GUI which will prompt the user for each of those and will subsequently create a Student object. After several students input data, all of this should be placed in an ArrayList of Student objects. These should finally be written to a file.

    I was just wondering whether this is practical, and if it is, how should I proceed forward (I will do the actual coding, I just need help with designing my program)

    Thank you.

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

    Default Re: GUI to ArrayList to File

    Sounds ok to me, but I'd consider saving each student after the data are entered. Imagine you've entered 20 students and a power cut or a BSOD occurs.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

Similar Threads

  1. Reading from txt file to arraylist
    By artur in forum New To Java
    Replies: 4
    Last Post: 02-10-2012, 05:51 AM
  2. Writing Arraylist to new file
    By seanfmglobal in forum New To Java
    Replies: 5
    Last Post: 09-18-2011, 05:29 PM
  3. Replies: 12
    Last Post: 07-07-2011, 09:49 PM
  4. Read txt file into arraylist
    By nickerhardt in forum New To Java
    Replies: 9
    Last Post: 08-04-2010, 05:34 PM
  5. Saving ArrayList to File
    By nwboy74 in forum Advanced Java
    Replies: 6
    Last Post: 12-08-2008, 11:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •