fork download
  1. class MDarrays_28 {
  2. public static void main(String[] args) {
  3. int flats[][];
  4. flats = new int[2][3];
  5. flats[0][0] = 101;
  6. flats[0][1] = 102;
  7. flats[0][2] = 103;
  8. flats[1][0] = 201;
  9. flats[1][1] = 202;
  10. flats[1][2] = 203;
  11.  
  12. for (int[] i: flats) {
  13. for (int j: i) {
  14. System.out.print(j);
  15. System.out.print(" ");
  16. }
  17. System.out.println();
  18. }
  19.  
  20. }
  21.  
  22. }
Success #stdin #stdout 0.08s 50884KB
stdin
Standard input is empty
stdout
101 102 103 
201 202 203