CMIS242 Homework 2 Java Exceptions and Interface
Write a Java application that asks a user to enter two integers (A and B) and then display the results of A/B. Catch any division by zero errors and prompt the user to reenter the value of B. Be sure your code compiles and runs as expected. Name your Java file SafeDivision.java.
Write a Java interface named Searchable with two abstract methods: one named Way2Search that returns a String and another named MaxTime that returns an Integer. Write another class that implements that interface and that contains a simple test. Be sure your code compiles and runs as expected. Name your Java files Searchable.java, and TestSearchable.java.