public class ReturnTypes{
public static void main(String[] args) {
//create a class instance
ReturnTypes rt = new ReturnTypes();
//call your method here
rt.returnNothing();
//call the other method here
boolean b = rt.returnBoolean();
System.out.println("The value of b is: " + b);
double d = rt.getPi();
System.out.println("The value of pi is: " + d);
}
//end of psvm main method
//create your first method here
public void returnNothing(){
System.out.println("Inside of a void method");
}
//your second method here a method that returns a boolean
public boolean returnBoolean(){
return true;
}
//your third method here a method that returns a boolean
public double getPi(){
return Math.PI;
}
}