CodeGym /Courses /Java Syntax /Enter a number

Enter a number

Java Syntax
Level 3 , Lesson 8
Available
Enter a number - 1

"Hi, Amigo. You're doing great. Here is a new exercise for you: write a program that accepts some data from the keyboard and displays text that uses that data:"

3
Task
New Java Syntax, level 3, lesson 8
Locked
Minimum of two numbers
Minimum of two numbers
3
Task
New Java Syntax, level 3, lesson 8
Locked
18+
18+
3
Task
New Java Syntax, level 3, lesson 8
Locked
Bouncer policy
Bouncer policy
3
Task
New Java Syntax, level 3, lesson 8
Locked
Quadrants
Quadrants
Comments (178)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Olena Soroka Level 2, Ukraine
4 September 2025
all tasks are paid, I stop study
Dom Level 21, England, United Kingdom
26 July 2025
I feel like the previous lession could have given more examples on how to use BufferedReader and InputStreamReader the video went on about Scanner then all of a sudden the task is on about BufferedReader and InputStreamReader for someone who is new to java this just goes way over your head and could be explained better in previous lession
Anonymous #11655448 Level 11, New York City, United States
10 June 2025
I have no idea how to do the input....
Jimmy Level 31, Lausanne, Switzerland
12 November 2024
stay hard, keep going
Steven Level 3, Augsburg/Munich, Germany
5 November 2024
got bez i deleted the Solution Class and entered my code from the ide, this error q_q Внимательно проверь выводимый текст: похоже, ты забыл пробелы между словами.
Rakesh K Level 3, CodeGym University in India, India
2 September 2024
import java.util.Scanner; guys import this package and use scanner.
theLand Level 8, Tampa, United States
25 August 2024
DO you want us to use Scanner class? Do you not want us to use Scanner class? Can you make your mind up. Thanks
Anonymous #11549069 Level 10, Katowice, Poland Expert
12 August 2024
your complier is wrong . when i put at end , 3th task : " System.out.println(name1 + name2 + name3 " = Pure love. "); " it display :

en/codegym/task/jdk13/task03/task0322/Solution.java:20: error: ')' expected
    System.out.println(name1 + name2 + name3 "  = Pure love.  ");
instead error is missing plus, + sign , not close bracket sign
Anonymous #11549069 Level 10, Katowice, Poland Expert
11 August 2024
you should explain more about BufferedReader (instead of Scanner) in previous lesson if you give now exercise that suggest that it should be used instead of Scanner. Previous movie is about scanner, you explain too little to make it via BufferReader as exercise want it. I see error in previous lesson - you did not explain that number cannot be put as number int type while working with BufferedReader. Also and more important : in previous lesson it was nothing about that it need to import all :

import java.io.BufferedReader;
import java.io.InputStream;  
import java.io.InputStreamReader;
import java.io.Reader; 
so this code will work. and in task there are only two imports already made when open task. You should correct that , either put missing imports in task or exaplain in exercise that they are need.
Luke Level 5, Saint Paul, United States
19 January 2024
You can solve this problem using the Scanner class if you want but at the top near the other 2 already existing Import statements you will need to add the following line of code. import java.util.Scanner; Otherwise the program does not recognize the Scanner class and throws an error.