Month: July 2020
-
Lesson 16: User Input
When creating our Java programs, we have been changing the values, compiling, and seeing the results. Wouldn’t it be awesome if we could create programs that can ask for the user’s input and execute whatever we had programmed it to do? Well, we are in luck! Java has a couple of different ways to obtain […]
-
Coding Challenge 4:
For this coding challenge, we are going to create a class called CodingChallenge4 and create a boolean variable called I_like_sushi . You can assign it either a true or false value based on whether you are a Sushi fan. Then, we are going to create an if and an else if statement. For the if […]
-
Lessons 15: Comments
As you become more of a proficient programmer and start to create larger more complex programs, you will find out how important it is to organize your code and be able to quickly identify what your code is doing. Fortunately, Java has a way to write comments within our code that we can write to […]
-
Lesson 14: Else If Statements
Last lesson we learned about if else statements and how to get the computer to execute an else statement when the condition within our if statement is not met. In this lesson, we will be going over how to create an else if statement that is linked to the if else statement we learned the […]
-
Lesson 13: If Else Statements
In the last lesson we were introduced to if statements and how they are implemented in Java. In this lesson, we will be going over a more advanced version of the if statement. This statement will be referred to as the if else statement. This applies everything we learned in the lesson prior and adds […]