fork download
  1. class ideone {
  2. public static void main(String[] args) {
  3. int [] a = new int[10];
  4. for (int i = 0; i < a.length; i++)
  5. a[i] = i + 1;
  6. for (int i = 0; i < a.length; i++)
  7. System.out.println(a[i]);
  8. }
  9. }
  10. /* end */
  11.  
Success #stdin #stdout 0.09s 27792KB
stdin
Standard input is empty
stdout
1
2
3
4
5
6
7
8
9
10