My program is typed right, but the compiler says it wrong and suggestions
package com.codegym.task.task01.task0121;
/*
Display the text of the new contract:
My name is Amigo.
I agree to wages of $5000/month in the first year.
I agree to wages of $5500/month in the second year.
I agree to wages of $7000/month in the third year.
I agree to wages of $8000/month in the fourth year.
I agree to wages of $10000/month in the fifth year.
Kiss my shiny metal rear actuator!
Requirements:
1. The program should output text.
2. The text should begin with "My name is Amigo".
3. The text should end with a "metal rear actuator!".
4. The text should consist of 9 lines (empty lines are also lines).
5. The displayed text must match the task conditions.
*/
public class Solution {
public static void main(String[] args) {
System.out.println("My name is Amigo");
System.out.print( "\n" );
System.out.println("I agree to wages of $5000/month in the first year.");
System.out.println("I agree to wages of $5500/month in the second year.");
System.out.println("I agree to wages of $7000/month in the third year.");
System.out.println("I agree to wages of $8000/month in the fourth year.");
System.out.println("I agree to wages of $10000/month in the fifth year.");
System.out.print( "\n" );
System.out.println("Kiss my shiny metal rear actuator!");
}
}
System.out.print( "\n" );
withSystem.out.println( "" );
or even withSystem.out.println( " " );
(blank lines have a space in task conditions)