/* This program would use console/GUI,*/
/* It should
1 adding of object
2 display of object
3 updating of object
4 deleting of object
*/
import java.util.*;
public class EmployeeList{
private int [] Age;
private String [] EmpfirstName;
private String [] Emplast;
private String [] Adrss;
static Scanner console= new Scanner(System.in);
public EmloyeeList(){
// what should i put this part
}
/* I want to enter the first name of the employee please check if the method is
right*/
public void EmpfirstName(String EmpfirstName){
for(int i=0;i<EmpfirstName.length;i++)
System.out.println("Enter Employee first name");
EmpfirstName=console.nextLine();
System.out.println(EmpfirstName[i]);
}
/*I want to enter the last name of the employee here same please if the is right*/
public void EmplastName(String EmplastName){
for(int i=0; i< EmplastName.length;++)
System.out.println("Enter Last Name");
EmplastName=console.nextLine();
System.out.println( EmplastName[i]);
}
/*I want to enter the Address of the employee here same please if the is right*/
public void Adrss(String Adrss){
for(int i=0;i< Adrss .length;i++)
System.out.println("Enter your Address");
Adrss=console.nextLine();
System.out.println( Adrss [i]);
} /*I want to enter the last name of the employee here same please if the is right*/
public void Age(int age){
for(int=i;i<Age.length;i++)
System.out.println("Enter your Age");
Age=console.nextInt();
System.out.println(Age[i]);
/* Please check if it is right because i was really confused
thanks ...*/
}
}
And well you please edit my code if theres something i forgot to add and if theres wrong can you please edit..thanks...