Can someone please explain to me why is the not correct?
package com.codegym.task.task03.task0307;
/*
Hello, StarCraft!
*/
public class Solution {
public static void main(String[] args) {
Zerg zerg1.name = new Zerg("a");
Zerg zerg2.name = new Zerg("b");
Zerg zerg3.name = new Zerg("c");
Zerg zerg4.name = new Zerg("d");
Zerg zerg5.name = new Zerg("e");
Protoss protoss1.name = new Protoss("f");
Protoss protoss2.name = new Protoss("g");
Protoss protoss3.name = new Protoss("h");
Terran terran1.name = new Terran("i");
Terran terran2.name = new Terran("j");
//write your code here
}
public static class Zerg {
public String name;
}
public static class Protoss {
public String name;
}
public static class Terran {
public String name;
}
}