package class3_2_Gui;import javax.swing.*;import java.util.Scanner;public class CircleDecisionsGuiNoWhitespace{public static void main(String[]args){Scanner in=new Scanner(System.in);JOptionPane.showMessageDialog(null,"Please enter the radius of a circle");double radius=in.nextDouble();String line=JOptionPane.showInputDialog(null,"What do you want to do?\n"+"To compute the area of the circle, enter a.\n"+"Or, enter c for circumference:");char c=line.charAt(0);if(c=='a'){double area=Math.PI*radius*radius;JOptionPane.showMessageDialog(null,"The area is: "+area);}else if(c=='c'){double circumference=2*Math.PI*radius;JOptionPane.showMessageDialog(null,"The circumference is:"+circumference);}else{JOptionPane.showMessageDialog(null,"Unexecpted command:"+c+"Please enter c or a next time.");}JOptionPane.showMessageDialog(null,"Thank you for using this program.");}}