Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //jedes 3. feld eine 1 ausgeben (im array 6,6)
- public class test {
- public static void main(string[]args) {
- int[][]feld1;
- feld1=new int [6][6];
- for(int i=0; i < feld1.length; i++)
- {
- for(int j=0; j <feld.length; j++)
- {
- if(j==2 || j==5)
- {
- feld1[i][j] =1;
- }
- system.out.print(feld1[i][j] + " ");
- }
- system.out.printli();
- }
- }
- public test() {
- }
- }
Add Comment
Please, Sign In to add comment