Display right away

  • 3
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.
  • Popular
  • New
  • Old
You must be signed in to leave a comment
JoeLevel 4 , Salt Lake City
10 June, 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 LeirerLevel 7 , Keller
11 May, 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 {
Meena ChandLevel 4 , Gurgaon
28 March, 11:29
I couldnot figureout
Deborah WenrichLevel 7 , Pembroke Pines
22 October 2019, 21:54
:) It took a few more times and I figured out what the problem was.
Clarence L MackeyLevel 4 , Fresno
4 June 2019, 08:16
Wow! It's beginning to make more and more sense.
Roopa karajagiLevel 3 , Kanchipuram
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
giridharLevel 3 , Mumbai
3 November 2018, 03:30
/* The comment was deleted */
RomanLevel 41
5 November 2018, 06:23
Posting the solution in the comments is prohibited.
unique sapkotaLevel 4 , Oxnard
31 October 2018, 16:29
public class Solution {
    public static void printString(String s){

    // write your code here

    public static void main(String[] args) {
        printString("Hello, Amigo!");
whats wrong w my code help any one
RomanLevel 41
1 November 2018, 06:53
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 codegym.cc/help.