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 3 of 3

Thread: Not running because of this one line, help

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

    Default Not running because of this one line, help

    system.out.println("will take " +(output.format(t)) "seconds to hit the ground");

    error: ')' expected

    totally new to java and just looking for help. Can you not have the words separated like that? I saw my friend do THE SAME EXACT THING earlier but for some reason when I do it, it doesn't work. Please explain my error, thank you!


  2. #2
    Member
    Join Date
    Aug 2013
    Posts
    95
    Thanks
    3
    Thanked 14 Times in 14 Posts

    Default Re: Not running because of this one line, help

    system.out.println("will take " +(output.format(t)) + "seconds to hit the ground");

    Dont forget the second plus sign.

  3. The Following User Says Thank You to camel-man For This Useful Post:

    Simonhawk (September 17th, 2014)

  4. #3
    Junior Member
    Join Date
    Sep 2014
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Not running because of this one line, help

    omgggg Thank youu so much!

Similar Threads

  1. Running eclipse with command line?????
    By bluescreenofdeath in forum Java IDEs
    Replies: 1
    Last Post: July 26th, 2014, 04:08 PM
  2. Running eclipse with command line?????
    By bluescreenofdeath in forum Java Theory & Questions
    Replies: 0
    Last Post: July 26th, 2014, 03:52 PM
  3. Replies: 21
    Last Post: June 12th, 2013, 11:33 AM
  4. Replies: 10
    Last Post: September 16th, 2011, 07:49 PM
  5. Replies: 2
    Last Post: November 26th, 2009, 08:45 AM