Java Video Tutorial 3

preview_player
Показать описание


In this Java Video Tutorial I show you the if statement, relational operators, logical operators, ternary operator and the switch statement.
Рекомендации по теме
Комментарии
Автор

I wish everyone would print the code. People that enjoy my videos normally print the code and then hit pause and take notes. I'm glad you are finding them useful

derekbanas
Автор

shoutout to the people who made it to part 3 . salute

ObeyAddie
Автор

It's CRAZY to see that a video made 5 years ago is still practical and effective at teaching students (like myself) Java. Hats off to you Derek!

TDD
Автор

Thats the glory of having a video tutorial! You can pause and re-listen to a segment if need be. I for one am very grateful of Derek's faster than normal tutorials. Keeps me on my toes with typing notes as he speaks about his examples.

koochyo
Автор

Perfection. You speak just fast enough that I don't have to 2X the speed AND you don't waste time with non-essential chit-chat. AND you don't hold my hand... tutorials for smart folk (who probably have OCD or ADHD or whatever).


With you as my teacher, I could have finished high school in a month. Thanks again.

jameswhite
Автор

I'm 12 and I'm learning java! I wouldn't know anything without these amazing videos thanks for making them Derek Banas

nathanhoward
Автор

Where have these been when I began taking Java classes? These videos are clearer than any book or class that I have taken.. thanks for the good tutorials Derek!

yuriybotshteyn
Автор

You're very welcome :) Go to Preferences -> General -> Editors -> Text Editors -> Spelling
I ignore all

derekbanas
Автор

I just got a co-op position as a simple java developer and these videos have really refreshed my memory of the language thank you very much sir.

Trielectify
Автор

Thank you :) All my new tutorials move very fast. I'm glad you found them useful

derekbanas
Автор

I calm down on that over time. You wouldn't believe how many questions I get about how to create the file :) I'm glad you liked it. Thanks

derekbanas
Автор

Math.random() generates a double between 0 and 1. Math.random() * 5 would calculate random values of 0, 1, 2, 3, and 4. To generate values between 5 to 10, you'd just add 6 to the result of the random calculation. Here is what that would look like (Math.random() * 5) + 5
0 becomes 5, 1 becomes 6, 2 becomes 7, etc....

derekbanas
Автор

Thank you :) I still have many more Java / Software Development tutorials coming. I'm glad you enjoy them

derekbanas
Автор

Yes you can accept input with scanner and then use switch with that input

derekbanas
Автор

Great I'm glad to hear that. If you get confused around part 8 feel free to skip it and keep going. It is just a review, but some people didn't like it

derekbanas
Автор

That is known as a conditional operator. If the condition on the left of ? is true the first value is assigned to the variable that proceeds the conditional operator. If the condition is false the second option is assigned

derekbanas
Автор

You are correct that break doesn't need to be there. I was taught forever to include it and it just became a weird habit. Yes you could put default at the top, but it would be correct for everything.

derekbanas
Автор

Yes I cover pretty much everything. This isn't a game tutorial in anyway. The only topics I haven't covered so far have to mostly do with Java networking. I'll cover that in its own tutorial.

derekbanas
Автор

I see a lot of people complaining how this Java tutorial is not for beginners, but myself have never done any Java, and it's really easy for me to follow. Well done Derek, you are the man when it comes to programming tutorials ;)

hemicar
Автор

Feel free to ask questions. A char can store a single 16-bit Unicode character. An int can store any number without a decimal with a minimum value of -2, 147, 483, 648 and a maximum value of 2, 147, 483, 647. Datatypes basically define how much space the data will take up and what rules that data must follow. For example a char can only contain 1 character and an int can't have a decimal

derekbanas
welcome to shbcf.ru