Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.34 KB | None | 0 0
  1. import java.util.TimerTask;
  2.  
  3. public class Plansza extends TimerTask{
  4.    
  5.     int plansza[][] = new int[20][20];
  6.    
  7.     int poz1 = 3;
  8.     int poz2 = 4;
  9.    
  10.     @Override
  11.     public void run() {
  12.     }
  13.    
  14.     public void zrobPlansze() {
  15.         int plansza2[][] = {
  16.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  17.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  18.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  19.                 {0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  20.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  21.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  22.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  23.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  24.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  25.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  26.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  27.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  28.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  29.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  30.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  31.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  32.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  33.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  34.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  35.                 {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
  36.         };
  37.        
  38.         for (int i = 0; i < plansza.length; i++) {
  39.             for (int j = 0; j < plansza[0].length; j++) {
  40.                 plansza[i][j] = plansza2[i][j];
  41.             }
  42.         }
  43.     }
  44.  
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement