Author

Java BugHunt #4: If

Difficulty: Easy Time to solve: <5 min Video this is covered in: 6 import java.util.Scanner; public class Jtutorial1 { public static void main(String args[]){ Scanner input = new Scanner(System.in); int x=5; if (x = 10){ System.out.println("I love you heaps!"); } else{ System.out.println("I love waffles"); } }//end main }//end class Error information:Exception in thread “main” java.lang.RuntimeException:... » read more

Java BugHunt #5: If Statements

Difficulty: Easy Time to solve: <5 min Video this is covered in: 6 import java.util.Scanner; public class Jtutorial1 { public static void main(String args[]){ Scanner input = new Scanner(System.in); System.out.println("How much does Employee 1 make? "); double emp1 = input.nextDouble(); System.out.println("How much does Employee 2 make? "); double emp2 = input.nextDouble(); System.out.println("How much does Employee... » read more

Programming Problem #1 — starting off slow

In his challenge I ask that you do the following things: Create a program that will: Use loops to complete the tasks below Print out a list of all the numbers that meet the following criteria, one item per line. Are either: Prime, or Multiples of 3, or 8, but not both 3 and 8,... » read more