fork(1) download
  1. public class Main{
  2.  
  3. public static void main(String[] args) {
  4. Testowa testowa = new Testowa();
  5. testowa.randInt;
  6. }
  7. }
  8.  
  9. ----------------------------------------------
  10.  
  11. import java.util.Random;
  12.  
  13. public class Testowa {
  14. public static int randInt(int min, int max, int n) {
  15. for (int i = 0; i < n; i++) {
  16. Random rand = new Random();
  17. int randomNum = rand.nextInt((max - min) + 1) + min;
  18. return randomNum;
  19. }
  20. }
  21. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:5: error: not a statement
        testowa.randInt;
               ^
Main.java:9: error: class, interface, or enum expected
----------------------------------------------
^
2 errors
stdout
Standard output is empty