CodeGym /Courses /Java Syntax /Useful Links from the Professor – 3

Useful Links from the Professor – 3

Java Syntax
Level 3 , Lesson 10
Available

"Well, hello, Amigo! I trust you understood everything that Ellie and Rishi told you today."

"But even if you do, repeating and reinforcing class material never hurt anybody. These activities usually not only solidify your knowledge, but also expand your awareness!"

"But I'm getting carried away. Forget about what I just said. Instead, here are a few useful links that will help you to dive deeper into and review the material from the third level. They may even help you understand something that you didn't before."

Reading from the keyboard with readers

"This topic isn't that complicated, but it can be muddy. Beginners often find it confusing due to the abundance of incomprehensible words. If you misunderstood something or want to reinforce your knowledge, read this article. It'll give a little boost to your understanding of reading from the keyboard. For example, by improving your understanding of what a stream is."

Scanner class

"This class makes the life of Java developers (who can be confused by readers) somewhat easier. It knows how to do a lot, and you've probably already used it a couple of times. If not, read this article about the Scanner class and give it a try. For a change."

Escaping characters

"You'll gradually remember how to escape characters, even if you currently think the process has too many rules. So it doesn't hurt to read something on the topic. For example, here's a useful article: Escaping characters. Bookmark it and peek at it occasionally until you don't need to anymore!"

"And I recommend a very, very useful book: 'Thinking in Java'... It's usually recommended to programmers a little less green than you. But it's so good that it wouldn't hurt to check it out. Start slowly. If it's unclear, set it aside and re-read through a few levels. EVERY Java programmer should read it."

"Begin with the first chapter: 'Introduction to Objects'. If you understand what's in there, you'll make me so proud!"

3
Task
New Java Syntax, level 3, lesson 10
Locked
Labels and numbers
Use the keyboard to enter an integer. Display a string description as follows: "Negative even number" - if the number is negative and even, "Negative odd number" - if the number is negative and odd, "Zero" - if the number is 0, "Positive even number" - if the number is positive and even, "Positive o
3
Task
New Java Syntax, level 3, lesson 10
Locked
Describing numbers
Enter an integer from the keyboard in the range 1 - 999. Display a string description as follows: "even single-digit number" - if the number is even and has one digit, "odd single-digit number" - if the number is odd and has one digit, "even two-digit number" - if the number is even and has two digi
3
Task
New Java Syntax, level 3, lesson 10
Locked
Positive number
Use the keyboard to enter three integers. Display the number of positive numbers in the original set. Here are some examples: a) if you enter the numbers -4 6 6 then we display 2 b) if you enter the numbers -6 -6 -3 then we display 0 c) if you enter the numbers 0 1 2 then we display 2
3
Task
New Java Syntax, level 3, lesson 10
Locked
Positive and negative numbers
Use the keyboard to enter three integers. Display the number of positive and negative numbers in the original set in the following form: "Number of negative numbers: a", "Number of positive numbers: b", where a and b are the relevant values. Examples: a) if you enter the numbers: 2 5 6 then we displ
Comments (16)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Lunita Level 4, Dominican Republic
24 January 2023
Todavía sigo entusiasmada con el curso, aprendiendo de manera consistente.
Alexander Thomson Level 8, Lucca, Italy
12 March 2022
i was i little bit confused.. I have understand the passed lesson and the topic linked hear, but wat i dont understand is why previously say the scanner method will not be used in the future? Why the scanner method is not the best way to obtain input from console?
Lunita Level 4, Dominican Republic
24 January 2023
Major Differences between Scanner and BufferedReader Class in Java BufferedReader is synchronous while Scanner is not. BufferedReader should be used if we are working with multiple threads. BufferedReader has a significantly larger buffer memory than Scanner. The Scanner has a little buffer (1KB char buffer) as opposed to the BufferedReader (8KB byte buffer), but it’s more than enough. BufferedReader is a bit faster as compared to Scanner because the Scanner does the parsing of input data and BufferedReader simply reads a sequence of characters.
Lance Wilson Level 8, Cincinnati
28 October 2021
The links provided above, should have been provided earlier this level, when we actually needed to reference the topics. I suspect most folks did a search on "BufferedReader example", or something like that. Heck, we even got penalized for using scanner class. I had to rewrite the first "input" task, because I used a Scanner, instead of BufferedReader. Oh well...was a good exercise for me :)
MLA Level 16, Philadelphia, United States
2 April 2020
Odd, why are Scanners being introduced here like we already did them after we had a whole lesson telling us to use BufferReader/InputStreamReader instead?
Brad Reed Level 19, Hartford, United States
19 June 2020
They introduced them in one line then said we wouldNot really use them, and then that was it.
Pranshu Level 4, New Delhi, India
28 August 2020
Because you are about to finish this level and the developers don't want anyone to have many orbs of energy in their account. That's what i think of. Btw i have 100+ so not a problem.
Ted404 Level 11, Dubai, United Arab Emirates
10 February 2020
seemed easy but took me two days to finish this lesson
Laura Level 7, Lübeck, Deutschland
8 August 2020
Same here
Angelo Tratsis Level 8, Boston, United States
7 December 2020
So happy and proud for both of you Ted and Laura. Doesn't matter how many days it took you to solve it. It matters you did it and didn't give up. Is an example that, if you apply patience, effort, consistency and persistence, there is nothing you can't do.. Keep it up ladies and gentlemen. You doing great.
Aditya Level 5, Baleshwar, India
14 December 2019
read this article POST_NOT_FOUND 😞
Зоран Јањић Level 8, Teslic, Serbia
23 August 2019
Read this, it's very helpful. As I didn't understand about reading input and the scanner class this made it easier​ to understand.
Drazen Jankovic Level 11, München, Germany
27 October 2020
Jesi li napustio ovu igricu ili igras jos uvijek? 😀
Arundhathy M. U Level 4, Thiruvananthapuram, India
1 June 2019
nice
Renat Mukhametshin Level 16, Pervouralsk, Russain Federation
24 March 2019
very cool!!!
Marco Myers Level 8, Abilene, United States
18 March 2019
i love these "break" lessons.