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

Thread: Missing a javadoc comment error in Bluej

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

    Default Missing a javadoc comment error in Bluej

    Working with bluej and simply trying to run this code. Error is "Missing a javadoc comment" on the line beginning with "public static void..." on "column 5". Very new to Java as it is for a computer science class with extremely vague instructions. Unsure why this error is being thrown. Any help is appreciated!

    {
        public static void main(String[] args)
        {
            int x = 1;
            int y = 8;
            System.out.println("x+y=" + (x + y));
        }
    }

  2. #2
    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: Missing a javadoc comment error in Bluej

    The post code is missing the declaration for an enclosing class.

    See the tutorial: https://docs.oracle.com/javase/tutor...classdecl.html
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 4
    Last Post: October 1st, 2014, 12:01 PM
  2. comment my program! + some questions
    By leonne in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 17th, 2013, 12:46 AM
  3. error: missing return statement
    By bassie in forum What's Wrong With My Code?
    Replies: 5
    Last Post: January 6th, 2013, 02:09 PM
  4. error: array dimension missing x 2. Any help?
    By giga in forum What's Wrong With My Code?
    Replies: 7
    Last Post: June 30th, 2012, 09:50 AM
  5. [SOLVED] Please comment
    By tonil in forum Java Theory & Questions
    Replies: 8
    Last Post: August 18th, 2009, 05:51 PM

Tags for this Thread