Java Tutorial #2 — New data types, variable naming and arithmetic.

Topics Discussed: Introduced new data types, when to use said data types, variable naming schemes, and how the java compiler handles arithmetic Source Code for Lesson 2: import java.util.Scanner; public class Jtutorial1 { public static void main(String args[]){ // Scanner input = new Scanner(System.in); //System.out.println("Hello World"); //System.out.println("Enter a number: "); //int a; //Integer. -1, -15,... » read more

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