Author

Java Tutorial #5 — Calculating seconds

Topics Discussed: Using what we’ve learned so far to calculate how many seconds are in a user-defined amount of time Source Code for Lesson 5: import java.util.Scanner; class Jtutorial1 { public static void main(String args[]){ Scanner input = new Scanner(System.in); int days=0, hours=0, minutes=0, seconds=0; //Prompt the user fpr how many days. How many hours.... » read more

Java Tutorial #6 — Intro to if/else logic

Topics Discussed: If/Else logic and structure, if “conditionals” Source Code for Lesson 6: import java.util.Scanner; class Jtutorial1 { public static void main(String args[]){ Scanner input = new Scanner(System.in); int a = 0, b=0; //Boolean operator. == a = 4? = a is now = 4; //If conditional -- Goes into the brackets of the if,... » read more

Java Tutorial #7 — Nested If / else structure and logic

*Note*: My apologies for the volume being somewhat screwed up, Starcraft II turned up microphone boost on its own. This gets fixed in a few videos. Topics Discussed: The structure behind using nested if statements effectively and how easy it is to get them confused! Source Code for Lesson 7: import java.util.Scanner; class Jtutorial1 {... » read more

Java Tutorial #8-1 / 8-2 — Using math functions with if logic

Apologies about this being a two-part video, AND for my mic volume being weird, in future videos this is fixed. I’ll consider re-recording this later Topics Discussed: Using math functions with if-based logic to choose the output of a program Source code for Lesson 8, Part 1: 8-2 Here Topics discussed: Same as above Source... » read more

Java Tutorial #9 — Boolean logic / operators

Topics Discussed: Boolean Logic / Operators Source Code for Lesson 9: import java.lang.Math; import java.util.Scanner; class Jtutorial1 { public static void main(String args[]){ Scanner input = new Scanner(System.in); // Declare a double, run some tests on it. // Is it even or odd? Is it a perfect square? Is it a whole number? // Is... » read more