String entry = " ";
for(;!entry.equals("q");){
System.out.println("Enter 'q' to quit: ";
entry = stdIn.nextLine();
}
Monday, November 2, 2009
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];
}
b) System.arraycopy(temp,0,list,0,list.length);
OR
for(int i=0, j=temp.length-1; i
list[i]=temp[i];
}
Subscribe to:
Posts (Atom)