Why am I getting an "expected" error on the line below marked with "HERE!"?
double principal, annual_rate, time;
principal=0.0;
System.out.print("Enter the principal amount: ");
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
break
principal = Double.parseDouble(br.readLine()); HERE!
} catch (IOException ioe) {
System.out.println("IO error trying to read principal!");
System.exit(1);
}
annual_rate=0.0;
System.out.print("\nEnter the annual rate of interest: ");
BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));
Our community of experts have been thoroughly vetted for their expertise and industry experience.