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 sure what the issue is here

  1. #1
    Junior Member
    Join Date
    Nov 2011
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default not sure what the issue is here

    This is what I have: [JavaScript] My Point - Pastebin.com (Not sure how the forums work with code, but I thought that would be the easiest way to do it.)

    It gives me two errors, both with the parenthesis in the print line.


    C:\Users\Tfence\Desktop\MyPoint.java:51: error: <identifier> expected
    System.out.println(point12distance);
    ........................^
    C:\Users\Tfence\Desktop\MyPoint.java:51: error: <identifier> expected
    System.out.println(point12distance);
    ..............................................^


    I don't see what the issue here is?


  2. #2
    Junior Member
    Join Date
    Nov 2011
    Location
    Aarhus, Denmark
    Posts
    28
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Lines 50 and 51 looks correct but, where are they supposed to belong to? They are outside of any methods.

  3. #3
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: not sure what the issue is here

    1. Use
     your code here
    2. These two statements are not in any of the function, so they must give compile time error. Put these lines in some function.

Similar Threads

  1. Array issue
    By Mini83 in forum Collections and Generics
    Replies: 5
    Last Post: August 18th, 2011, 09:18 AM
  2. Tic Tac Toe ActionPerformed Issue
    By Jakesta42 in forum What's Wrong With My Code?
    Replies: 19
    Last Post: August 14th, 2011, 11:11 PM
  3. How to solve this issue
    By adrienk in forum Java Theory & Questions
    Replies: 1
    Last Post: April 11th, 2011, 04:46 PM
  4. [SOLVED] Calendar Issue
    By aussiemcgr in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 11th, 2010, 01:19 PM
  5. Issues with Tomcat 6.0
    By sanyog24681 in forum Java Servlet
    Replies: 0
    Last Post: October 21st, 2008, 07:55 AM