Write a program that displays: "Amigo is very smart".
Example output: Amigo is very smart
If you are struggling with the task, press the Hint button.
Requirements:
The program should output text.
The text should begin with "Amigo".
The text should end with "smart".
The text should consist of 19 characters, including spaces.
The displayed text must match the task conditions.
package com.codegym.task.task01.task0142;
/*
Amigo is very smart
*/
public class Solution { ;
public static void main(String[] args);
System.outprintln("Amigo is very smart");
There are multiple mistakes,
1) close the class using } at end of the line
2) open the method using {
3) close the method using }
4) remove ; at line number 8 and 9
classes, functions and conditions are not ends with ;(semicolon),
public class Solution {
public static void main(String[] args)
{
System.out.println("Amigo is very smart");
}
}
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.