An array that takes the size depending on what I enter : <pre><code>import java.util.Scanner;
public class Singleton{
    public static void main(String args[]){
        Scanner input = new Scanner(System.in);
        System.out.println("Enter number of students: ");
        int number = input.nextInt();
        String names[] = new String[number];
        for(int counter = 0; counter &lt; 100; counter++){
            System.out.print("Enter name: ");
            names[counter] = input.nextLine();
            names[counter] = names[counter].toLowerCase();
        }
        int grades[] = new int[names.length];
        int count = 0;
        for(String x: names){
            System.out.print(x + "'s grade: ");
            grades[count] = input.nextInt();
            count++;
        }
        count = 0;
        for(String x: names){
            System.out.println(x + "'s grade is " + grades[count] + ".");
            count++;
        }
    }
}
</code></pre>

<p>can you help me to get something so I can put any number of values in the array without asking how many students there are?</p>
