Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Re: HELP ME WITH THIS CODE. I"M ABOUT TO SMASH MY LAPTOP SCREEN

    You need to have your PC's keyboard checked. It's Caps lock is stuck on.
  2. Re: HELP ME WITH THIS CODE. I"M ABOUT TO SMASH MY LAPTOP SCREEN

    Looks like an empty String was read into the g variable(between the = and the <). What method was used to read g?

    If the code has called the next() method, there is a newline left in Scanner's...
  3. Re: HELP ME WITH THIS CODE. I"M ABOUT TO SMASH MY LAPTOP SCREEN

    You need to enhance your usage of println() to show what is in the String that was read. What if the String returned by nextLine() was empty? Try this:


    System.out.println("g="+g+"<");


    ...
  4. Re: HELP ME WITH THIS CODE. I"M ABOUT TO SMASH MY LAPTOP SCREEN

    Please explain how that happens. Do you get any error messages?
    Can you post the code where that happens and copy the console from when you executed the code.
    On windows: To copy the contents of...
  5. Re: HELP ME WITH THIS CODE. I"M ABOUT TO SMASH MY LAPTOP SCREEN

    Please Edit your post and wrap your code with


    <YOUR CODE HERE>

    to get highlighting and preserve formatting.


    If you are only entering one word before pressing Enter, use the nextLine()...
Results 1 to 5 of 5