|
as everyone else said you can use Java's default constructor.
Number n1 = new Number();
or alter the "Pie" method which looks as if it is practically a constructor anyway just the wrong syntax. remove void and replace "Pie" with the name of your class. As in:
public Number(int numIn){
number = numIn;
}
I think conventionally only Constructor methods should be uppercase.
-Jon
|