Results 1 to 3 of 3
  1. #1
    NFSharvey is offline Member
    Join Date
    Aug 2015
    Location
    Atlanta, GA
    Posts
    1
    Rep Power
    0

    Default I dont know what im doing wrong

    Could someone please tell me what im doing wrong. Im supposed to be writing a program that reads in the radius of a circle,
    then computes the circumference and displays the result. but i cant get past this part.

    I dont know what im doing wrong-code.png

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: I dont know what im doing wrong

    Your prompt should just be an informative message. The nextDouble method takes an input from the terminal (console), and does not take an argument.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    26

    Default Re: I dont know what im doing wrong

    Quote Originally Posted by NFSharvey View Post
    I dont know what im doing wrong
    Please go through the Forum Rules, especially the third paragraph.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. dont know
    By selomojemalo in forum New To Java
    Replies: 3
    Last Post: 08-04-2013, 02:57 PM
  2. Replies: 2
    Last Post: 10-31-2012, 12:24 AM
  3. Dont know what im doing wrong here
    By prendergast36 in forum New To Java
    Replies: 4
    Last Post: 09-09-2011, 09:57 PM
  4. I dont know what's wrong with line 36. please help
    By amrmb09 in forum Advanced Java
    Replies: 31
    Last Post: 11-21-2010, 10:18 AM
  5. Replies: 6
    Last Post: 09-14-2009, 10:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •