java - Syntax error on token ")", ; expected after this token while expression -


so i'm creating program using joptionpane , using while. have 1 error

syntax error on token ")", ; expected after token while expression on "while (select > 5)

here's code

public class labwork2abuel {  public static void main(string[] args) {     float num;     string choice, input, numinput;     int select, area, width, height, n, i, f;      double radius, area1;       object[] options = {"yes", "no"};      {         choice = joptionpane.showinputdialog("main menu " +     "\n 1. compute area of circle"     + "\n 2. compute area of square"     + " \n 3. compute area of rectangle"     + "\n 4. compute factorial of number"     + "\n 5. exit program");     }      while (select > 5)     {            choice = joptionpane.showinputdialog("enter 1-5!" +     "\n main menu +"     + "\n 1. compute area of circle"     + "\n 2. compute area of square"     + "\n 3. compute area of rectangle"     + "\n 4. compute factorial of number"     + "\n 5. exit program");     }      if (select == 1)     {         choice = joptionpane.showinputdialog("enter radius", "circle area input");         radius = double.parsedouble(input);         area1 = math.pi * math.pow(radius, 2);         string message = "area of circle: " + area1;         string title = "circle area output";         joptionpane.showmessagedialog(null, message, title, select); 

you missing while (some condition); after closing } of do loop.

or, missing ; after while (select > 5).

but after that, you're going whole shedload of errors relating uninitialized variables, select. , load of logical errors, not changing select in while (select > 5) loop.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -