Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Code won't compile

  1. #1
    Junior Member
    Join Date
    Sep 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Code won't compile

    I'm new to Java, so I'm sorry if this seems like a far fetched question.
    Last edited by Jag_; September 20th, 2019 at 07:19 PM.

  2. #2
    Member John Joe's Avatar
    Join Date
    Jun 2017
    Posts
    277
    My Mood
    Amused
    Thanks
    8
    Thanked 19 Times in 19 Posts

    Default Re: Code won't compile

    At where you define parsedouble function?
    Whatever you are, be a good one

  3. #3
    Junior Member
    Join Date
    Sep 2019
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Code won't compile

    I think it must be:
    double cost = Double.parseDouble(coststring).doubleValue();
    Last edited by MyOggRadio; September 20th, 2019 at 12:16 AM.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Code won't compile

    Please edit your post and wrap your code with code tags:

    [code]
    **YOUR CODE GOES HERE**
    [/code]

    to get highlighting and preserve formatting.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. How do I get the compile code in Eclipse?
    By AvivC in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 31st, 2013, 09:38 AM
  2. Skip code to compile.
    By JosPhantasmE in forum Java Theory & Questions
    Replies: 8
    Last Post: May 10th, 2013, 05:19 PM
  3. Why does this code compile?
    By prasanna1157 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: December 29th, 2012, 04:27 PM
  4. Code won't compile
    By JavaChallenged in forum What's Wrong With My Code?
    Replies: 6
    Last Post: February 12th, 2012, 08:18 PM
  5. Code won't compile, but can't find the error....
    By RockDoc in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 29th, 2012, 02:09 AM