Musick17
Well-Known Member
Im working on writing a program in java for a class and am kinda confused on which loops would be best to use and was wondering if anyone here has any kind of experience.
here is my program description:
"your program should first ask for a decimal number to convert, then perform the conversion from decimal to binary and display the binary number. then the program should ask the user if they would like to repeat the process. The program end when the user chooses not to convert another number. "
I have the first dialog box formatted correctly which gets the input and stores it in a variable. But I do not know what kind of loops past this point. I am doing this in the JOptionPane class.
thanks to any advice in advance
here is my program description:
"your program should first ask for a decimal number to convert, then perform the conversion from decimal to binary and display the binary number. then the program should ask the user if they would like to repeat the process. The program end when the user chooses not to convert another number. "
I have the first dialog box formatted correctly which gets the input and stores it in a variable. But I do not know what kind of loops past this point. I am doing this in the JOptionPane class.
thanks to any advice in advance