Monday, November 2, 2009

Pg. 468 Exercise 12

String entry = " ";
for(;!entry.equals("q");){
System.out.println("Enter 'q' to quit: ";
entry = stdIn.nextLine();
}

Pg. 468 Exercise 11

i = 5, factorial = 5

Pg. 426 Exercise 7

a) Homer Flanders Apu

b) System.arraycopy(temp,0,list,0,list.length);

OR

for(int i=0, j=temp.length-1; i temp[j]=list[i];
list[i]=temp[i];
}

Pg. 426 Exercise 6

System.arraycopy(allSalaries, 2, workerSalaries, 0, 5);