Search:

Type: Posts; User: youngstorm

Search: Search took 0.09 seconds.

  1. Thread: Switch

    by youngstorm
    Replies
    10
    Views
    1,543

    Re: Switch

    sorry, wish I could do more for you.
  2. Thread: Switch

    by youngstorm
    Replies
    10
    Views
    1,543

    Re: Switch

    Why isn't it coloring your code I wonder?
    I know sometimes if emacs colors code funny, it CAN mean something is up with the code.
    But that does not make sense because it works for me.
    Im sorry, Im...
  3. Thread: Switch

    by youngstorm
    Replies
    10
    Views
    1,543

    Re: Switch

    I think u have included all relevant code.
    the only thing I see really different is I did import java.util.*;
    try that.


    heres my "equivalent" code.


    import java.io.*;
    import java.util.*;
  4. Thread: Switch

    by youngstorm
    Replies
    10
    Views
    1,543

    Re: Switch

    hummm......it works for me
    can u please show the class declaration and imports your using?
  5. Thread: Switch

    by youngstorm
    Replies
    10
    Views
    1,543

    Re: Switch

    your switch has (choice/6)
    I think what you want is just switch(choice)
    remember the / will return whole numbers not remainder
    so when u enter 6....6/6 = 1
Results 1 to 5 of 5