Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
test
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' import java.util.*; import java.lang.*; import java.util.Scanner; class Rextester { public static void main(String args[]) { Rextester rex = new Rextester(); Scanner scanner = new Scanner(System.in); System.out.println("Enter a number of repeating Hello world"); int a = scanner.nextInt(); rex.printHello(5); } public void printHello(int nb){ for (int i=0; i<nb; i++){ System.out.println("Hello, World!"); } } }
run
|
edit
|
history
|
help
0
Random number
Most Common Word
BST
Series_4_8
Desvio Padrão - LPI
Rakibul Haque
jb7.0 extends.override
predecrement
Central Inteligence Agency
first activity