/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package lab2stuff; import java.util.Scanner; /** * Testing class * @author jcmt */ public class Lab2stuff { /** * @param args the command line arguments */ public static void main(String[] args) { Library mylib = new Library(); Person me = new Person(); Employee you = new Employee("Ali","Smith","TX",76010, 4); you.setAge(40); // Get user's choice of action //int userin = menuChoices(); System.out.println("Default Age you:"+ you.getAge()); you.setAge(15); System.out.println("After setAge(15) you:"+ you.getAge()); me.setAge(-42); System.out.println("After setAge(-42):"+ me.getAge()); //me.age = -42; System.out.println("After age(-42):"+ me.getAge()); /** * Implement user's choice */ } public static int menuChoices() { System.out.println("Please choose a library function by the number:"); System.out.println("1. Add a new book to the library"); System.out.println("3. Check out a book from the library"); Scanner in = new Scanner(System.in); int n = in.nextInt(); return n; } }