Java - How to print down everytime you hit enter

I’m new to java and i wonder how can i can print helloworld everytime i hit enter. Is it possible?

23rd Nov 2019, 4:46 AM
0000 redshanks
0000 redshanks - avatar
1 Answer
+ 2
You need an input everytime before hitting enter to print what you want.
23rd Nov 2019, 4:50 AM
Avinesh - avatar