Greetings to all! Tell me, what's wrong with my code?
public class Solution
{
public static void main(String[] args)
{
System.out.print("I think being a programmer is cool");
}
}
problems with the first lesson
Under discussion
Comments (5)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
20 February 2019, 14:19
your problem is that you should be using System.out.println and not System.out.print
0
Andrey
21 February 2019, 05:17
Thanks for your help
0
Guadalupe Gagnon
20 February 2019, 14:12
Next time you ask a question make sure that you click the help button on the task window, this will give everyone access to the task you are working on. Also, do not copy and paste code, it makes it very difficult to read. Instead use the attach code slider as in this pic:
.
![]()

0
Khurram
20 February 2019, 07:25
can you share the error that you are receiving? or maybe the condition that is not being satisfied?
0
Andrey
20 February 2019, 09:59
Verification results:
1.The program should output text.
Recommendation from your mentor
Be sure that you are displaying the text on the console.
2.The text should begin with "I think".
3. The text should end with "is cool".
4. The text should consist of 34 characters, including spaces and punctuation marks.
Recommendation from your mentor
The output is too short.
5. The text should consist of one line.
6. The displayed text must match the task conditions.
Recommendation from your mentor
Check the case of the letters. Uppercase and lowercase letters are considered different.
0