How is it possible that every requirement is wrong, when the program clearly generates the output defined in the problem statement? I mean, even "The program must not read data from the keyboard" is a fail?
I also tried it by just having 10 println() statements, got the same results.
package com.codegym.task.task03.task0324;
/*
Mercantile intentions
Display ten times the phrase "I want a big salary, and that's why I'm studying Java"
Requirements:
1. The program must not read data from the keyboard.
2. The program should output text.
3. The text should begin with "I want".
4. The text should end with "studying Java".
5. The text should consist of 10 lines.
6. The displayed text must match the task conditions.
*/
public class Solution0324 {
public static void main(String[] args) {
//write your code here
for (int i = 0; i<10; i++) {
System.out.println("I want a big salary, and that's why I'm studying Java");
}
}
}