This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args){ | |
ArrayList<City> tour = new ArrayList<City>(); | |
for(int i1 = 0; i1 < 100; i1++){ | |
int c; | |
int b; | |
Random randomno = new Random(); | |
c= randomno.nextInt(300); | |
b= randomno.nextInt(260); | |
City city = new City(b, c); | |
tour.add(city); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////ZAD 5/////////////////////////////////////// | |
public class Zad5Zew { | |
private static int pole; | |
private void doSomething() { | |
System.out.println("robie cos"); | |
System.out.println("POLE " + getPole()); | |
} | |
public int getPole() { | |
return pole; | |
} |