Display right away

  • 3
  • Locked
Programming isn't always difficult. Sometimes you need to do simple tasks. And the more similar tasks you have to do, the more you want to automate them. Let's implement one more method. Ultimately, objects without methods don't do anything. We'll pass the string s to the method, which will then display it on the screen.
You can't complete this task, because you're not signed in.
Comments (14)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Level 3 , United States
16 December 2020, 05:34
this was tough and was not able to get it :(
Raunak Adhikari
Level 12 , India
18 August 2020, 14:04
just see the question the answer is in it XD
Level 5 , Salt Lake City, United States
10 June 2020, 20:52
So I figured it out, but I don't know why it works. I wish I understood it and could explain it to someone as to why it works. I wish there was a detailed answer I could see explaining this lesson. oh well.
Brandon Leirer
Level 7 , Keller, United States
11 May 2020, 22:06
If it helps anyone else, when I created the- public static void printString(String s) I mistakenly added a ; at the end instead of a {
locanto B
Level 4 , Pune, India
10 April 2020, 19:36
Not able to view the requirements?
Meena Chand
Level 4 , Gurgaon, India
28 March 2020, 11:29
I couldnot figureout
sajib sn
Level 3 , Dhaka, Bangladesh
28 October 2019, 19:06
Why the code don't run? help please!
Deborah Wenrich
Level 7 , Pembroke Pines, United States
22 October 2019, 21:54
:) It took a few more times and I figured out what the problem was.
Clarence L Mackey
Level 4 , Fresno, United States
4 June 2019, 08:16
Wow! It's beginning to make more and more sense.
Roopa karajagi
Level 3 , Kanchipuram, India
19 March 2019, 00:33
while running I am facing an issue .it showing illegal expression can you please check //System.out.println("s"); <-- no need to use "" System.out.println(s); // this is the correct way