package my.util; import java.util.Random; /** * Peer class for the TeleTYpewriter class. It models the native methods of the TeleTYpewriter class. * * @author Franck van Breugel */ public class TeleTYpewriter { private TeleTYpewriter() {} /** * Returns a random boolean value. * * @return a random boolean value. */ public static boolean isTTY() { System.out.println("Modelling isTTY"); Random random = new Random(); return random.nextBoolean(); } /** * Returns "name". * * @return "name". */ public static String getTTYName() { System.out.println("Modelling getTTYName"); return "name"; } }