Search:

Type: Posts; User: Daigan

Search: Search took 0.11 seconds.

  1. Thread: Do while help

    by Daigan
    Replies
    15
    Views
    1,910

    Re: Do while help

    Alright, thanks for your advice.
  2. Thread: Do while help

    by Daigan
    Replies
    15
    Views
    1,910

    Re: Do while help

    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,...
  3. Thread: Do while help

    by Daigan
    Replies
    15
    Views
    1,910

    Re: Do while help

    // The "LiquidConversion" class.
    import java.awt.*;
    import hsa.Console;

    public class LiquidConversion
    {
    static Console c; // The output console
    static String procstr;
    ...
  4. Thread: Do while help

    by Daigan
    Replies
    15
    Views
    1,910

    Re: Do while help

    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?
  5. Thread: Do while help

    by Daigan
    Replies
    15
    Views
    1,910

    Re: Do while help

    // The "LiquidConversion" class.
    import java.awt.*;
    import hsa.Console;

    public class LiquidConversion
    {
    static Console c; // The output console
    static String procstr;
    ...
  6. Thread: Do while help

    by Daigan
    Replies
    15
    Views
    1,910

    Re: Do while help

    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.
  7. Thread: Do while help

    by Daigan
    Replies
    15
    Views
    1,910

    Re: Do while help

    cause it keeps on going if I don't.
  8. Thread: Do while help

    by Daigan
    Replies
    15
    Views
    1,910

    Do while help

    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
    ...
Results 1 to 8 of 8