/* Example code from Sept 2 */ package sept2test; import java.util.Scanner; /** * * @author jcmtiernan */ public class Sept2Test { /** * @param args the command line arguments */ public static void main(String[] args) { // Test code Scanner input = new Scanner(System.in); int myValue; int secondValue; double floatingPointValue, secondFLValue; byte smallValue; boolean twoValue; System.out.print("Please enter an integer: "); myValue = input.nextInt(); System.out.print("Now enter a floating point number: "); floatingPointValue = input.nextDouble(); System.out.print("Please enter a byte value: "); smallValue = input.nextByte(); System.out.println("Now we compare "+myValue+" and "+floatingPointValue+" to get a boolean value: "); twoValue = (myValue != floatingPointValue); secondValue = 9; secondFLValue = secondValue/floatingPointValue; System.out.println("Result of 9 / FLValue is: "+secondFLValue); System.out.println("Y'all are awesome!"); System.out.print("You are a perfect "); System.out.println((6+4)/myValue); System.out.println("The input values were "+myValue+" and "+floatingPointValue); System.out.println("The byte and boolean are "+smallValue+" and "+twoValue); } }