"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:"
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
got bez i deleted the Solution Class and entered my code from the ide, this error q_q Внимательно проверь выводимый текст: похоже, ты забыл пробелы между словами.
Rakesh KLevel 3, CodeGym University in India, India
2 September 2024
import java.util.Scanner; guys import this package and use scanner.
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 :
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.
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.
GO TO FULL VERSION