Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Projekt {
- public static void main (String[]args) {
- //tworze i wypełniam pole
- int [][] plansza= new int [23][23];
- int counter1=0;
- for(int i=0;i<plansza.length;i++) {
- for(int j=0;j<plansza[i].length;j++) {
- plansza[i][j]=0;
- System.out.print(plansza[i][j]);
- }
- System.out.println();
- }
- //pole zostało stworzone
- //rozkładam ser
- for(int i=0;i<=53;i++) {
- for(int j=0;j<plansza[i].length;j++) {
- plansza[i][j]=(int)(Math.random()*2 );
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement