package chapter2; /** * Title: Chapter 2, "Primitive Data Types and Operations" * Description: Examples for Chapter 2 * Copyright: Copyright (c) 2000 * Company: Armstrong Atlantic State University * @author Y. Daniel Liang * @version 1.0 */ // ShowLogicErrors.java: program contains a logic errors public class ShowLogicErrors { /**Main method*/ public static void main(String[] args) { // Prompt the user to enter a number System.out.print("Please enter an integer: "); int number = MyInput.readInt(); // Determine if a number is between 1 and 100 inclusively // Display the result System.out.println("The number is between 1 and 100, " + "inclusively? " + ((1 < number) && (number < 100))); } }