This is my test driver. Does anyone know why it is not working?
public class TestInfo
{
public static void main(String args[])
{
Info results = new Info();
printInfo();
}
public static String printInfo();
{
System.out.println(" The Diameter is: " + results.diam
+ " The Circumference is: " + results.circum
+ " The Area is: " + results.area);
}
}
The error message I get is: missing method body, or declare abstract
The print block has to be a separate method. The print block works when I put it in main. When it is in a separate method and I call it in main it doesn't work