public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int n,i;
Integer[] iArray = new Integer[10];
for (i=0;i<10;i++){
n = Integer.parseInt(reader.readLine());
iArray[i] = n;
}
for (int j = 9;j>=0;j--){
System.out.println(iArray[j]);
}
}
}
works when running, but not meeting task requirements for creating array ? Why ??
Resolved
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Johannes
5 March 2020, 09:41
ahhhh: no worry: I put "Integer[] iArray" instead of "int[] iArray"
0