Print three times

  • 1
  • Locked
I do not repeat do not repeat do not repeat in threes in threes in threes. Based on this first sentence, have you already guessed what your task is? If not, here it is: implement the print3 method so that it displays the passed string or word three times on the same line. Don't forget to separate all the words with spaces.
You can't complete this task, because you're not signed in.
Comments (24)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Seth Barker
Level 5 , Eureka Springs, United States
3 January 2021, 20:34
So I decided to experiment a little with the code and once I got the proper coding in I added an additional print3("folder") to the main method. Again... only as an experiment. Turns out, the added space applies to all 3 words.
Level 3 , San Antonio, United States
16 October 2020, 17:42
No loop is needed only print and space
Tunde. O
Level 4 , Springdale, United States
5 October 2020, 23:09
It's quite a learning experience - do your system.out 3 times
Level 9 , Rochester, United States
29 September 2020, 08:06
Remember to read the instructions : "Words must be separated by a space and should not merge into one.", or you will be doomed to keep trying this assignment forever.
Raunak Adhikari
Level 12 , India
15 August 2020, 13:53
read the question closely it is said 3 times on the same line not in three different make a loop that runs 3 times and then print print3 with a space in between ....
Level 3 , Seaham, United Kingdom
28 April 2020, 21:16
i really dont feel like i have read over lessons which cover any of the stuff in level too so far... without very obvious help in the comments id still be on the first task... any pointers here?
Sarah Beth Benes
Level 3 , Savannah, United States
10 June 2020, 14:03
This is a return to the basic printing really. It is the same as the last exercise, with using print instead of println.
Meena Chand
Level 4 , Gurgaon, India
26 March 2020, 12:05
Still i coudnot figureout.. Can somebody please help?
Thaddeus B Cornish Jr.
Level 3 , Nassau, Bahamas
25 November 2019, 15:02
im using System.out.println to get a output text from print3 and it did not work in the print3 method so i used String s instead System.out.print( String s); and i still got error. Somebody please help me
Level 41
26 November 2019, 07:42
If you need help, something isn't right in your code, the server won't accept your solution (even if you are 100% sure that it is correct). Describe your question/issue in the HELP section at
Level 3 , United States
20 September 2019, 16:11
I made the mistake of taking the instructions too literally and displaying the word "word" on the screen three times. I was thinking too much like a computer. It was simple to display each String three times on the same line separated by spaces once I read others comments and remembered that I had deleted the supplied strings "window" and "file" and replaced them by the word(String) "word".
Level 3 , United States
20 September 2019, 15:57
I created a static int counter named count and set to 0, I called print3() once and printed the String "word ", I called print3() a second time and printed the String "word word", I displayed the output: "word word word" on the screen from the print3() method using the if statements according to the value of count. If count == 0, "word" was displayed. If count == 1, "word word was displayed. I was not given credit for completing the requirements of the task.