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 BugHunt #2

Difficulty: Easy Time to solve: <5 min Video this is covered in: 2 import java.util.Scanner; public class Jtutorial1 { public static void main(String args[]){ Scanner input = new Scanner(System.in); double a=0, b=1, c=2, d=3; System.out.println("Enter a value for E: "); double e= input.nextDouble(); System.out.println("Enter a value for F: "); double f; System.out.println(a+b+c+d+e+f); }//end main }//end... » read more