Kathryn introduces comparison operators that create boolean expressions, and conditional operators that operate on these boolean expressions.
- [Instructor] In the last chapter, we looked at…how we can build programs with Java…using an object oriented programming style.…In this chapter, we are going to look at some programs…that have different outcomes based on conditions…and decisions made during the execution of their code.…Now what are these conditions?…Thinking back to math class, you had comparison operators.…Some examples are the greater than,…less than, and equal to signs,…and here's how we represent them in Java.…We have greater than, less than, equal to, not equal to,…greater than or equal to, and less than or equal to.…
Depending on what numbers are used,…these expressions can evaluate to true or false.…In other words, these expressions evaluate to Booleans.…For example, if we have five is greater than 10,…then this would evaluate to false.…Next, if we have 10 is greater than five,…then this would evaluate to true.…Ultimately, what these expressions evaluate to…will determine the flow and outcome of your program.…Let's take a look at another example.…
- Downloading Java 9 and choosing an IDE
- Understanding Java basics: data types, strings, arrays, and more
- Controlling flow with functions and loops
- Working with inheritance and interfaces
- Learning lambda
Skill Level Beginner
1. Getting Started
2. Java Basics
3. Control Flow
4. Beyond the Basics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.