Hello everyone:
Need some help on Arraylist.
I made a array and I'm a little confused on how to make the Arraylist. Do I need to make an Arraylist for each of the following or do I just add this below
ArrayList<Emplo yeeClass> arlist = new ArrayList<Emplo yeeClass >();
here is part of my code.
thanks nomad
PS the book I'm using is not to good It's called "Big Java"
Need some help on Arraylist.
I made a array and I'm a little confused on how to make the Arraylist. Do I need to make an Arraylist for each of the following or do I just add this below
ArrayList<Emplo yeeClass> arlist = new ArrayList<Emplo yeeClass >();
here is part of my code.
Code:
class EmployeeClassa { private String empid; private String lname; private String fname; private String street; private String city; private String zip; private int yearsworked; private double payrate; public EmployeeClassa (String id) { empid = id; }
PS the book I'm using is not to good It's called "Big Java"
Comment