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 #3 — Simple calculations, bank interest problem.

Topics Discussed: Using java to compute simple calculations, such as bank interest. Source Code for Lesson 3: import java.util.Scanner; class Jtutorial1 { public static void main(String args[]){ Scanner input = new Scanner(System.in); //Asks a user for how much money they want to invest in a bank //What is the APR of that bank. Annual percentage... » read more

Java Tutorial #10 — Loop logic / intro

Topics Discussed: While loops, do_while loops, counter controlled loops, loop syntax, loop scoping Source Code For Lesson 10: import java.util.Scanner; class Jtutorial1 { public static void main(String args[]){ Scanner input = new Scanner(System.in); int i=0;//initialize a new variable for use as a counter while(i < 10){//While the variable is less than 10 System.out.println(i);//Print the current... » read more

Java Tutorial #15.1 / 15.2 — Introduction to and using arrays

Topics Discussed: Arrays, subscripts, iterating through arrays Source Code Below   15.2 Topics discussed: Same as above Source Code for Lesson 15-1 / 15-2 import java.util.Scanner; class Jtutorial1 { public static void main(String args[]){ Scanner input = new Scanner(System.in); //int i= 5; i(5); //int anArray[] = new int[5]; //anArray[ | | | | ]; //anArray[0|0|0|0|0];... » read more

Java Tutorial #17 — Encapsulating programs // including more than 1 file

Topics discussed: Encapsulation by separating methods into new files. Source Code Available Here Program encapsulation The concept of program encapsulation is simple: break things down into their component parts so when something breaks, it’s easy to track, and easier to fix. The more ‘parts’ you break your program into (via methods) the easier this becomes.... » read more