Hi Guys i really need help i duno hw to do case 2.. of my program. i duno wats wrong..
import java.util.*; import java.text.*; public class SDR { static String [] cla={"fs","Jan","Feb","Mar","Apr","May","June","Ju l","Aug","Sept","Oct","Nov","Dec"}; static Scanner input = new Scanner(System.in).useDelimiter("\r\n"); static DecimalFormat fmt=new DecimalFormat("0.00"); public static void main(String[] args) { //declare variables int num=0; int choice=0,choice2=0; double month, euroDollars, exchangeRate, singDollars,salary; String person; while(choice!=3) while(choice2!=12) { System.out.println("*********** Family Income ***********"); //Menu System.out.println(" 1) Enter monthly salary"); System.out.println(" 2) Display detalied salary by month"); System.out.println(" 3) Quick glance at monthly salary"); System.out.println(" 4) Exit"); //Prompt and Read Choice System.out.print("Please select your choice (1-4): "); choice = input.nextInt(); System.out.println("****************************** ******************** "); System.out.println(""); switch(choice) { case 1: //Prompt and Read Inputs System.out.print("Enter month (1 for Jan - 12 for Dec): "); choice2 = input.nextInt(); System.out.println("------------------------------------- "); System.out.println(""+cla[choice2]+" salary ( max 8 person)" ); do { System.out.print("Enter person " +(++num)+"(Press ENTER to exit): "); person = input.next(); System.out.print("Enter salary :$ "); salary= input.nextDouble(); } while(choice!=3); break; case 2: //Prompt and Read Inputs System.out.print("Enter month (1 for Jan - 12 for Dec): "); choice2 = input.nextInt(); System.out.println("------------------------------------- "); } }//end of main }//end of class }