Co robię źle w Zerg? Skoro to samo robię w 2 pozostałych i jest dobrze.
package pl.codegym.task.task03.task0307;
/*
Witaj, StarCraft!
*/
public class Solution {
public static void main(String[] args) {
Zerg zerg1 = new Zerg();
zerg1.imie = "Adam";
Zerg zerg2 = new Zerg();
zerg2.imie = "Ewa";
Zerg zerg3 = new Zerg();
zerg3.imie = "Igor";
Zerg zerg4 = new Zerg();
zerg4.imie = "Magda";
Zerg zerg5 = new Zerg();
zerg5.imie = "Kasia";
Protoss protoss1 = new Protoss();
protoss1.imie = "Izydor";
Protoss protoss2 = new Protoss();
protoss2.imie = "Bogdan";
Protoss protoss3 = new Protoss();
protoss3.imie = "Mariusz";
Terranin terranin1 = new Terranin();
terranin1.imie = "Klaudia";
Terranin terranin2 = new Terranin();
terranin2.imie = "Bohun";
Terranin terranin3 = new Terranin();
terranin3.imie = "Grzegorz";
Terranin terranin4 = new Terranin();
terranin4.imie = "Danuta";
}
public static class Zerg {
public static String imie;
}
public static class Protoss {
public String imie;
}
public static class Terranin {
public String imie;
}
}