Learn to use for, while, for-each, and if-then-else statements to control program flow in Java.
- [Instructor] In this video I'll explain nine…flow control statements from the Java language.…In order to explain these flow control statements…we'll use three classes: a Person class,…an Age Category Enum and a Person Test.…Note that the Person class is contained…in the flow control package of your exercises file folder.…The Person class contains two strings for family name…and first name and age,…an age category enum…and a list of strings that we'll call hobbyList…and as the name indicates it will contain a list of hobbies.…
Our enumeration AgeCategoryEnum contains these values.…Let's look at the before method…of our test class Person Test.…In this we're creating a new person,…and then we're assigning values using if else constructs.…Here, note that there's an age gap.…This category will be unknown.…The reason that it will be unknown…is that the default value within the enumeration…is going to be zero.…
Also, we initialize the hobbyList by accessing the list…and then using list add method…to add these particular hobbies.…
- The IMQAV model
- Downloading software
- Installing and setting up a Java coding environment
- Mock tests
- Code coverage
- Using windows, views, and modes in IntelliJ IDEA
- Creating classes and attributes
- Creating constructors
- Casting variables
- Matching literals with regular expressions
- Regular expressions
- Design patterns
Skill Level Intermediate
Java: Database Integration with JDBCwith David Gassner2h 51m Intermediate
NumPy Data Science Essential Trainingwith Charles Kelly3h 54m Intermediate
1. Getting Started with Java
2. Test-Driven Development
3. IntelliJ IDEA
4. Object-Oriented Java
6. Regular Expressions (Regex)
8. Design Patterns
9. Applying Data Science
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
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.