Search:

Type: Posts; User: chunkymonkey

Search: Search took 0.12 seconds.

  1. Thread: Scanner

    by chunkymonkey
    Replies
    9
    Views
    3,590

    Re: Scanner

    Thanks again, I wasn't sure about the printf thing, but after some googling I came up with this.
    System.out.print("Product 1: ");
    System.out.printf("%.2f",dollarsmadeprod1);...
  2. Thread: Scanner

    by chunkymonkey
    Replies
    9
    Views
    3,590

    Re: Scanner

    Thank you!! that did it!
    only one more thing if you don't mind.
    I need my System.out.println statements to be formatted to only have 2 decimal places.
    right now they look like this...
  3. Thread: Scanner

    by chunkymonkey
    Replies
    9
    Views
    3,590

    Re: Scanner

    okay, actually, I decided to start over, but the Scanner is still my problem. I will include the code, but the bigger problem for me right now is the the integer that I think should be holding me...
  4. Thread: Scanner

    by chunkymonkey
    Replies
    9
    Views
    3,590

    Re: Scanner

    thank you so much for the reply Jim, but
    keyboard.close()
    or
    keyboard.close();
    both give the "keyboard cannot be resolved" error.
  5. Thread: Scanner

    by chunkymonkey
    Replies
    9
    Views
    3,590

    Scanner

    hello,
    I need to create a Scanner in my code, and I've googled it and it seems like I can open the Scanner utility just fine. But I found out later that you need to close the Scanner, and I can't...
Results 1 to 5 of 5