Enter a number
Comments (169)
- Popular
- New
- Old
You must be signed in to leave a comment
Luke
19 January, 19:31
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.
0
Papy-La-Taupe
21 November 2023, 07:23
change the import for :
import java.io.BufferedReader;
import java.io.InputStream; // Ajout de l'import nécessaire
import java.io.InputStreamReader;
import java.io.Reader;
Or else it can't work
0
Anonymous #11383577
18 August 2023, 13:13
I have to agree, the assignment should reflect what you concentrated on in the lesson. If we are going to use Bufferedreader that us what should be concentrated on ib the lesson.
+2
Anonymous #11274451
27 June 2023, 16:36
The details of coding are so annoying!
0
Anonymous #11343219
7 June 2023, 19:23
why can't just use scanner(easier) any ways... learned about this buffer reader. Thanks.
+1
KaiDanielTabuchi Java Developer
29 August 2023, 13:17
i read online that bufferedreader is faster,
+1
Dia Campbell
31 March 2023, 23:08
Why on earth do the print instructions use buffered reader, but the video only addresses scanner? That combined with the lack of solid instruction in this section makes these exercises a little undirected and confusing.
+8
Nadeem AfzalExpert
6 March 2023, 16:28
/* Comment has been deleted */
0
Tomasz Przychodzeń
2 July 2023, 06:34
I use scanner and it's ok, no errors.
0
Anonymous #11294308
20 February 2023, 23:27
Never heard of Buffer Reader. I thought I am going to use the scanner. I need to go and learn buffer reader.
+1
Simphiwe Full Stack Developer
8 February 2023, 17:05
BufferedReader is better than Scanner!
+3
Anonymous #11263161
22 January 2023, 00:17
I agree with everyone who is saying this section is a little tougher and not as well explained. I also am using this as reinforcement for my current Java class. I wonder why they default to BufferedReader, my Java class defaults to using the Scanner.
+3
Lunita
23 January 2023, 03:35
Cuz BufferedReader is faster than Scanner. BufferedReader is synchronous while Scanner is not.
BufferedReader has a significantly larger buffer memory than Scanner. 8KB byte buffer vs 1KB char buffer. BufferedReader simply reads a sequence of characters while Scanner needs to do the parsing of input data.
+2