how to implement print method
please help me to complete the task
Under discussion
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
Corina Bodea
27 February 2020, 14:39
When you want a particular segment of code to repeat you can use Java statements: for, while loops. Give it a try :). Search and experiment!
0
pronewb
4 February 2020, 13:53
system.out.println("x")
repeat 4 times, where x is the statement you want as output
+1
Geoff Green
27 January 2020, 07:05
You would call the println() statement 4 times like it describes. Make sure to pass the string into your println statement to display the correct output.
0
horst
26 January 2020, 13:26
It would be really helpful if you copied your current code right here in order to see how far you got until now and where the problem might be.
For now, guessing blindly, I can only rephrase the task for you:
What you should learn in this excercise is that you can call another method from the main method and pass arguments to it. The very rough template of your code should look like this:
0