fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. int [][] arr = new int [][] {
  13. {23, 78, 65, 78},
  14. {23, 78, 65, 78},
  15. {23, 78, 65, 78}
  16. };
  17.  
  18. arr[1][1] = 69;
  19.  
  20. for (int i = 0; i < 3; i++) {
  21. for (int j = 0; j < 4; j++) {
  22. System.out.print (arr[i][j] + " ");
  23. }
  24. System.out.println ("");
  25. }
  26. }
  27. }
Success #stdin #stdout 0.08s 33912KB
stdin
Standard input is empty
stdout
23  78  65  78  
23  69  65  78  
23  78  65  78