Main.java:4: error: class MathTest is public, should be declared in a file named MathTest.java
public class MathTest
^
Main.java:14: error: constructor Math in class Math cannot be applied to given types;
Math m=new Math(genRandom(), genRandom());
^
required: no arguments
found: int,int
reason: actual and formal argument lists differ in length
Main.java:15: error: cannot find symbol
m.menu();
^
symbol: method menu()
location: variable m of type Math
3 errors