public class Main{
public static void main
(String[] args
) { Testowa testowa = new Testowa();
testowa.randInt;
}
}
----------------------------------------------
import java.util.Random;
public class Testowa {
public static int randInt(int min, int max, int n) {
for (int i = 0; i < n; i++) {
int randomNum = rand.nextInt((max - min) + 1) + min;
return randomNum;
}
}
}
cHVibGljIGNsYXNzIE1haW57CgogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIFRlc3Rvd2EgdGVzdG93YSA9IG5ldyBUZXN0b3dhKCk7CiAgICAgICAgdGVzdG93YS5yYW5kSW50OwogICAgfQp9CgotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCgppbXBvcnQgamF2YS51dGlsLlJhbmRvbTsKCnB1YmxpYyBjbGFzcyBUZXN0b3dhIHsKICAgIHB1YmxpYyBzdGF0aWMgaW50IHJhbmRJbnQoaW50IG1pbiwgaW50IG1heCwgaW50IG4pIHsKICAgICAgICBmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykgewogICAgICAgICAgICBSYW5kb20gcmFuZCA9IG5ldyBSYW5kb20oKTsKICAgICAgICAgICAgaW50IHJhbmRvbU51bSA9IHJhbmQubmV4dEludCgobWF4IC0gbWluKSArIDEpICsgbWluOwogICAgICAgICAgICByZXR1cm4gcmFuZG9tTnVtOwogICAgICAgIH0KICAgIH0KfQ==
Main.java:5: error: not a statement
testowa.randInt;
^
Main.java:9: error: class, interface, or enum expected
----------------------------------------------
^
2 errors