Search:

Type: Posts; User: JavaMistress

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    798

    Re: Beginner Java Help !

    there is no method to scan a char directly, unfortunately... so Iīd go with Normīs idea.

    SOmething like:


    Scanner chars = new Scanner(System.in);
    String toBeChar = chars.toString();
    char...
  2. Replies
    6
    Views
    798

    Re: Beginner Java Help !

    Oh, sorry, I forgot something...

    the same counts for


    System.out.println(newInput);
    this.hasFan=newInput;
    break;
  3. Replies
    6
    Views
    798

    Re: Beginner Java Help !

    The problem is at "switch(num)".

    "num" is, at the moment, a Scanner-object and not an int.

    You may have printed out "num.nextInt()" in that println-method, but you have not changed the...
Results 1 to 3 of 3