Arithmetic operators, mod, order of operations in Java; Intro to Java (full course) Lesson 2 Video 7
DesignCodeDebugRepeat DesignCodeDebugRepeat
865 subscribers
49 views
3

 Published On May 3, 2024

This series of videos is suitable for programmers with minimal (or no) programming experience who want to learn Java. In this video, we will go over the arithmetic operators in Java. The way division works might surprise you! We'll cover the mod operator (%), and order of operations. We'll also use jshell in this video, a handy tool that comes with your Java installation that allows you to quickly evaluate small bits of Java code.

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 Chapter 2 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!

Here is the Oracle Java Shell User's Guide page:
https://docs.oracle.com/en/java/javas...

Here is the Oracle Java operator precedence page:
https://docs.oracle.com/cd/E19253-01/...

Here is the Oracle summary of Java operators page:
https://docs.oracle.com/javase/tutori...

Here is the Oracle page on data type conversions in Java:
https://docs.oracle.com/javase/specs/...

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

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

PRACTICE

You can practice writing with the operations we learned in the video here*:
https://codecheck.io/files/2404071933...

*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 2 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?...


00:00 Welcome and overview of the last videos and this video
00:33 Introduction to jshell
03:30 Math operators
05:35 Type conversions / casting
07:06 Integer division
09:27 Mod (%) remainder
12:40 Order of operations (precedence)

show more

Share/Embed