package pl.codegym.task.task03.task0307;
/*
Witaj, StarCraft!
*/
import java.time.temporal.Temporal;
public class Solution {
public static void main(String[] args) {
Zerg zerg = new Zerg();
zerg.imie = "barnaba";
Zerg zerg2 = new Zerg();
zerg2.imie = "barnaba1";
Zerg zerg3 = new Zerg();
zerg3.imie = "barnaba3";
Zerg zerg4 = new Zerg();
zerg4.imie = "barnaba4";
Protoss prottos = new Protoss();
prottos.imie = "Kubus";
Protoss prottos1 = new Protoss();
prottos.imie = "Kubus1";
Protoss protoss3 = new Protoss();
protoss3.imie = "Kubus3;";
Terranin teranin = new Terranin();
teranin.imie = "Karolcia";
Terranin teranin1 = new Terranin();
teranin1.imie = "Karolcia1";
Terranin terranin3 = new Terranin();
terranin3.imie = "Karolcia 3";
}
public static class Zerg {
public String imie;
}
public static class Protoss {
public String imie;
}
public static class Terranin {
public String imie;
Pomoze ktos ?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
13 January 2021, 14:33
When you ask for help make sure to click the help button at the top of the task page and ask a question from there. This allows you to attach the code and task so that we can
1 - have the task requirements (there are +/- 1500 tasks on Codegym so we don't know them all by memory)
2 - have a nice formatted code where we can easily locate errors. Copying and pasting your code takes more time and effort on your part and it is not formatted so is not easy for us to quickly read it.
No, with your code, these 2 lines would be the problem:
Protoss prottos1 = new Protoss();
prottos.imie = "Kubus1";
0