This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package edu.northeastern.csye6200; | |
public class LAB5P2 { | |
public static void main(String[] args){ | |
RoomPeople roomA = new RoomPeople(); | |
RoomPeople roomB = new RoomPeople(); | |
System.out.println("Add two to room a and three to room b"); | |
roomA.addOneToRoom(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package edu.northeastern.csye6200; | |
public class LAB5P1 { | |
public static void main(String[] args) { | |
// TODO: write your code here | |
MyInteger n1 = new MyInteger(7); | |
System.out.println("n1 is even? " + n1.isEven()); | |
System.out.println("n1 is prime? " + n1.isPrime()); |