public class ProcessResults
{
private static int[] PayNum;
private static String[] Surname;
private static String[] FirstName;
private static String[] DoB;
private static String[] Dept;
private static Scanner keyboard = new Scanner(System.in);
private static int NumStaff;
public static void main(String[] args)
{
final int MAX_STAFF = 10;
PayNum = new int[MAX_STAFF];
Surname = new String[MAX_STAFF];
FirstName = new String[MAX_STAFF];
DoB = new String[MAX_STAFF];
Dept = new String[MAX_STAFF];
String entry;
char option;
NumStaff = 0;
public static void initialiseArray()
{
int [] TempPayNum = {123456, 234567, 345678, 456789, 567890, 678901, 789012};
String[] TempSurname={"Brown", "Jenkins", "Turner", "Cavendish", "Williams", "Ford", "Carter"};
String [] TempFirstName = {"James", "Susan", "Jane", "Paul", "James", "Karen", "Daniel"};
String[] TempDoB ={"24/3/85", "11/12/80", "5/7/72", "22/9/76", "19/1/81", "15/8/79", "4/2/62"};
String [] TempDept ={"Marketing", "Sales", " Sales", "Accounts", "Marketing", " Sales", "Accounts "};
for (int i = 0; i < 6;i++)
{
PayNum [i] = TempPayNum[i];
Surname [i] = TempSurname[i];
FirstName[i]=TempFirstName[i];
DoB [i]= TempDoB[i];
Dept[i]=TempDept[i];
NumStaff++;
}
}
ive been trying to print the contents list using different loops but all i get is null, do you have any ideas how i could do this please, your help will be greatly appreciated.
the only bits of missing code is just for the prgram menu i have not uploaded it because that is working fine.