Results 1 to 3 of 3
Thread: Employee Database using an Array
- 07-28-2008, 09:52 PM #1
Member
- Join Date
- Jul 2008
- Posts
- 1
- Rep Power
- 0
Employee Database using an Array
Hello i need your help on how to create an Employee Database using an array to store the employee’s first name, last name, ID Number, gender, date of birth, address (containing street name, city, state and postal code), employment date, employment status (Probation or Confirmed), designation (job title/position), department, employment type (full-time or part-time) and salary. please its urgent i have tried creating it but i don't have an idea...
- 07-30-2008, 01:27 AM #2
Your post has been converted into a thread. Please read the FAQ before posting again - even if your issue is urgent.
Vote for the new slogan to our beloved Java Forums! (closes on September 4, 2008)
Want to voice your opinion on your IDE/Editor of choice? Vote now!
Got a little Capt'n in you? (drink responsibly)
- 07-30-2008, 04:05 AM #3
Make a class that will hold the fields that you want.
Java Code:class Employee { String firstName; String lastName; int IDNumber; * gender; // decide on type, could be a String * date of birth; // could be a Date or String public Employee(String last, String first, int n, ...) { lastName = last; firstName = first; IDNumber = n; ... } }
Java Code:int size = size_desired Employee[] employees = new Employee[size]; // add an Employee - set the first element of the array: employees[0] = new Employee("Hancock", "John", 1522, ...);
Similar Threads
-
Jsp Project on Employee Details
By 82rathi.angara in forum JavaServer Pages (JSP) and JSTLReplies: 8Last Post: 01-20-2014, 09:34 AM -
H2 Database Engine 1.0.72
By Java Tip in forum Java SoftwareReplies: 0Last Post: 05-13-2008, 05:31 PM -
Array Reflection: Multi Array Reflection
By Java Tip in forum java.langReplies: 0Last Post: 04-23-2008, 08:08 PM -
How to access array stored in database through JSTL
By saurabh.joshi in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 11-19-2007, 01:46 AM -
Database in a PDA
By percivalwcy in forum JDBCReplies: 2Last Post: 08-08-2007, 03:10 AM
Bookmarks