Guest User

Untitled

a guest
Apr 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. //jedes 3. feld eine 1 ausgeben (im array 6,6)
  2.  
  3. public class test {
  4. public static void main(string[]args) {
  5. int[][]feld1;
  6. feld1=new int [6][6];
  7. for(int i=0; i < feld1.length; i++)
  8. {
  9. for(int j=0; j <feld.length; j++)
  10. {
  11. if(j==2 || j==5)
  12. {
  13. feld1[i][j] =1;
  14. }
  15. system.out.print(feld1[i][j] + " ");
  16. }
  17. system.out.printli();
  18. }
  19.  
  20. }
  21. public test() {
  22. }
  23. }
Add Comment
Please, Sign In to add comment