Problem
I am making a program that asks for a circles radius, then out puts the area, diameter, and circumference in a dialog box. I have everything working but I can not figure out how to make the results appear in one dialog box instead of three.
any help would be appreciated
Thanks
import javax.swing.JOptionPane;
publicclass radius{
publicstaticvoid main ( String args [] ){
String radius;
double radiusfloat;
double area;
double circ;
double diameter;
double pi = 3.14159;
radius = JOptionPane.showInputDialog("Enter the radius of a circle" );
radiusfloat = Double.parseDouble (radius);
diameter = 2 * radiusfloat;
area = (radiusfloat * radiusfloat) * pi;
circ = 2 * pi * radiusfloat;
JOptionPane.showMessageDialog (null,"The Diameter is " + diameter,"Results" , JOptionPane.PLAIN_MESSAGE );
JOptionPane.showMessageDialog (null,"The Area is " + area,".", JOptionPane.PLAIN_MESSAGE );
JOptionPane.showMessageDialog (null,"The Circumfrence is " + circ,".", JOptionPane.PLAIN_MESSAGE );
}//end of public static main
}// end of public class radius

