import javax.swing.JOptionPane;


public class ComputeArea3 {
    public static void main(String[] args) {
	final double PI = 3.14159;
	double radius;
	double area;
		  
        String radiusStr = JOptionPane.showInputDialog(null,"Enter the radius: ");
		  
	radius = Double.parseDouble(radiusStr);
	area = radius * radius * PI;
		  
        JOptionPane.showMessageDialog(null, "The area for a circle with radius " + 
            radius + " is " + area);
    }
}


syntax highlighted by Code2HTML, v. 0.9.1