package class3_3_Loops; import java.util.Scanner; public class UserQueryTermination { public static void main(String[] args) { Scanner in = new Scanner(System.in); String doContinue = "y"; while(doContinue.equals("y")) { System.out.println("What is the radius? (cm):"); double radiusCm = in.nextDouble(); System.out.println("The volume is: "+4.0/3*Math.PI*radiusCm* radiusCm*radiusCm); System.out.println("Continue? (y/n):"); doContinue = in.next(); } System.out.println("Goodbye!"); } }