package com.codegym.task.task03.task0302;
/*
Display right away
*/
public class Solution {
public static void printString(String s);
String a = "Hello, ";
String b = "Amigo!";
System.out.println(s);
public static void main(String[] args) {
printString("Hello, Amigo!");
}
}
can some one tell me where I went wrong
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Andres
1 December 2019, 05:21
yea it worked thank a bunch really apperciate it
+1
James
30 November 2019, 10:19
Your syntax is a little off. Check the first line of your method definition. It shouldn't end with a semi-colon. This is the structure:
public static void printString(){ }
+3