Skip to content

Instantly share code, notes, and snippets.

@sembozdemir
Created April 27, 2016 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sembozdemir/b4118559e911ccdd49b62c49ebd67028 to your computer and use it in GitHub Desktop.
Save sembozdemir/b4118559e911ccdd49b62c49ebd67028 to your computer and use it in GitHub Desktop.
Main.java oldstyle
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
RandomGenerator randomGenerator = new RandomGenerator();
while(true) {
scanner.nextLine();
int number = randomGenerator.getNumber();
System.out.println(number);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment