fork download
  1. class Main {
  2. final static int N = 10;
  3. public static void main(String[] args) {
  4. int []a = new int[N];
  5. for (int i = 0; i < N; i++)
  6. a[i] = N - i;
  7. for (int i = 0; i < N; i++)
  8. System.out.println(a[i]);
  9. }
  10. }
  11.  
Success #stdin #stdout 0.02s 246656KB
stdin
Standard input is empty
stdout
10
9
8
7
6
5
4
3
2
1