So i think i've got it all worked out.
import java.io.*;
public class SalesCenter {
private static BufferedReader stdin = new BufferedReader(
new InputStreamReader(System.in));
public SalesCenter() {
}
public static void main(String[] args) {
String choice = "e";
int number = 0;
Associate Kirby = new Associate("Kirby", "Munsen", 2);
Associate Bill = new Associate("Bill", "Donkin", 3);
Associate King = new Associate("King", "Zeal", 4);
Associate Luis = new Associate("Luis", "Sanfroth", 5);
Manager John = new Manager();
System.out
.print("Select Choice: Employee info(e) / Pay (p) / Quit (q)");
try {
choice = stdin.readLine();
System.out.print("Input employee number: ");
number = Integer.parseInt(stdin.readLine());
} catch (IOException e) {
e.printStackTrace();
}
if (choice.equals("e")) {
switch (number) {
case 1:
System.out.print(John.getInfo());
break;
case 2:
System.out.print(Kirby.getInfo());
break;
case 3:
System.out.print(Bill.getInfo());
break;
case 4:
System.out.print(King.getInfo());
break;
case 5:
System.out.print(Luis.getInfo());
break;
}
}
}
}
and i added this function to Employee
public String getInfo()
{
return Fname +"\n"+Lname+"\n"+salary+"\n"+Enumber;
}
}
This prolly isnt exactly what you looking for, but it works and should get you closer than you were a bit ago. Let me know if you have any more questions.