Alright, thanks for your advice.
Type: Posts; User: Daigan
Alright, thanks for your advice.
I'm expecting the loop in the intro method to keep looping if the user inputs a number other than 0. Same goes for the mainmenu method, I expect it to keep asking an input until it gets either a 5,3,...
// The "LiquidConversion" class.
import java.awt.*;
import hsa.Console;
public class LiquidConversion
{
static Console c; // The output console
static String procstr;
...
I removed the true in the while statement. And changed that from true to false and it still doesn't loop. Doesn't it mean that while runLoop is true don't stop looping?
// The "LiquidConversion" class.
import java.awt.*;
import hsa.Console;
public class LiquidConversion
{
static Console c; // The output console
static String procstr;
...
Yeah it still doesn't work though I changed it to this.
if (proc == 5 || proc ==3 || proc == 2)
runLoop = false;
runLoop is declared as a Boolean and true.
cause it keeps on going if I don't.
public void mainmenu ()
{
title ();
System.out.print("If you wish to exit press 5, if you want to go the intro press 2, and if you want to continue 3:");
do
...