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

    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
    Rep Power

    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, 04:51 AM
  2. Writing Arraylist to new file
    By seanfmglobal in forum New To Java
    Replies: 5
    Last Post: 09-18-2011, 04:29 PM
  3. Replies: 12
    Last Post: 07-07-2011, 08:49 PM
  4. Read txt file into arraylist
    By nickerhardt in forum New To Java
    Replies: 9
    Last Post: 08-04-2010, 04:34 PM
  5. Saving ArrayList to File
    By nwboy74 in forum Advanced Java
    Replies: 6
    Last Post: 12-08-2008, 10: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