Search:

Type: Posts; User: Tedstriker

Search: Search took 0.10 seconds.

  1. Re: Break/Continue example doesn't work with ConsoleReader

    class BreakExample2
    {
    public static void main(String[] args)
    {
    System.out.println("(Please enter a number from 1 to 6)");
    ConsoleReader console = new...
  2. Re: Break/Continue example doesn't work with ConsoleReader

    variable num is already defined in method main(java.lang.String[])

    That is the exact error, with for(int num = 1; num < 6; num++) being highlighted.
  3. Re: Break/Continue example doesn't work with ConsoleReader

    Sorry, the error is related to this line:



    for(int num = 1; num < 6; num++)


    the error is "variable num is already defined in method main(java.lang.string{})
  4. Break/Continue example doesn't work with ConsoleReader

    class BreakExample
    {
    public static void main(String[] args)
    {
    System.out.println("(Please enter a number from 1 to 6)");
    ConsoleReader console = new...
Results 1 to 4 of 4