Witajcie,
ten kod się kompiluje ale jak wyswietlic wynik z metody check() ?
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
}
int cyfra=2;
public void check() {
if (cyfra == 2) {
System.out.println ("This is two");
}
else {
System.out.println ("This isnt two");
}
}
}