Serial if, switch, ternary / conditional operator; Intro Java course Lesson 3 Video 7
DesignCodeDebugRepeat DesignCodeDebugRepeat
865 subscribers
62 views
3

 Published On Jul 12, 2024

This series of videos is suitable for programmers with minimal (or no) programming experience who want to learn Java. This is the sixteenth video in the Introductory Java series, and the seventh video in lesson 3 (branching). In this video we're going to look at how to handle mutually exclusive conditions with both serial if statements and switch statements, and we'll look at the ternary or conditional operator.

There is a suggested (free) book below that you could read along with the videos lessons. However, the video is very straightforward and can also stand alone or accompany any other introductory Java textbook. Let's have some fun learning to program in Java!

PLAYLIST

   • Introduction to Programming in Java, ...  

BOOK AND WEBSITE RESOURCES

This video is suitable to watch after reading Chapters 2 and 3 of Introduction to Programming Using Java, by David J. Eck:
https://math.hws.edu/eck/cs124/downlo...

The Elements of Java Style text is available here*:
https://amzn.to/4c2gn8H
*As an Amazon Associate I earn from qualifying purchases. Your purchases help me continue to bring you content!

The Open JDK page is here:
https://jdk.java.net/

The Eclipse IDE page is here:
https://eclipseide.org/

PRACTICE

You can practice writing the serial if version of the simple quiz here*:
https://codecheck.io/files/2406281327...

And the switch version here*:
https://codecheck.io/files/2406281329...

You can practice writing the ternary operator into the altitude program here*:
https://codecheck.io/files/2406281333...

And into the moon weight program here*:
https://codecheck.io/files/2406281350...

*The CodeCheck system courtesy of Cay Horstmann, https://horstmann.com/codecheck/

If you want to earn credit for learning to code, take an online course at CCRI! These videos are part of the Java Programming course:
https://ccri.edu/comp/

GET THE CODE

The github repository with all of the code examples for Lesson 3 is here:
https://github.com/ProfessorBurke/Jav...

RESOURCE ATTRIBUTIONS

Java JDK image from Oracle:
https://www.oracle.com/java/technolog...

Java coffee cup image:
By Mark Anderson (work for hire for Sun Microsystems) - http://www.logoeps.com/java-eps-vecto..., Fair use, https://en.wikipedia.org/w/index.php?...

1950's sign image by Freepik, modified in Photoshop.
Califormia font by Freepik.
1980's background by Freepik.
1990's image by Freepik.
2000's image by Freepik.
Groovy background image by Freepik.
1970's image by memetsaputra on Freepik.
https://www.freepik.com/free-vector/e...
Super Magic font by All Super Font
https://www.fontspace.com/category/gr...
Library image generated by NightCafe and edited in Photoshop.

00:00 Welcome, what we've covered and what's in this video
00:40 What is a mutually exclusive case
01:40 Serial if
06:12 Switch
11:00 Ternary / conditional operator

show more

Share/Embed