esoe
2 years ago
3 changed files with 17 additions and 3 deletions
@ -1,12 +1,17 @@ |
|||||||
package country.ru.molokoin; |
package country.ru.molokoin; |
||||||
|
|
||||||
public class Map { |
public class Map { |
||||||
private Country[] map;// = new Country[5];
|
private Country[] map = new Country[5]; |
||||||
public void initDefaults(){ |
public void initDefaults(){ |
||||||
map = new Country[5]; |
map[0] = new Country(); |
||||||
map[0].setName("Russia"); |
map[0].init("Russia", 17100000, 146700000, "Moscow", 12600000, 0); |
||||||
} |
} |
||||||
public static void main(String[] args) { |
public static void main(String[] args) { |
||||||
System.out.println("App.main()"); |
System.out.println("App.main()"); |
||||||
|
Map m = new Map(); |
||||||
|
m.initDefaults(); |
||||||
|
m.map[0].print(); |
||||||
|
m.map[0].getCapital().print(); |
||||||
|
|
||||||
} |
} |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue