0
import java.util.Scanner;
/**
*
* @author JEEWAT RAM
*/
public class Task5lab8 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner in = new Scanner(System.in);
System.out.println("enter range of numbers you want in array:");
int a = in.nextInt();
int[] numbers = new int[a];
System.out.println("enter all numbers: ");
for (int i = 0; i < a; i++) {
numbers[i] = in.nextInt();
}
}
}
什麼是你的問題嗎? –