Starlight*_*
2009-11-05 05:35:20 UTC
.........................
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
class Capacity{
public static void main(String[] args) {
int arrayLength = array.length;
Scanner scanner =
new Scanner(System.in);
List
for(int i= 0; i < 10; i++){
System.out.println("Enter " + "String # " + (i+1) + ":");
list.add(scanner.nextLine());
}
System.out.println("Now, enter" + " a new String:");
String search = scanner.nextLine();
System.out.format("The Java array length is %d", arrayLength);
}
}