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

Thread: class, interface, enum expected error > Canīt find the Problem and thanks for helping!<

  1. #1
    Junior Member
    Join Date
    Feb 2018
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Lightbulb class, interface, enum expected error > Canīt find the Problem and thanks for helping!<

    Last edited by wac; February 10th, 2018 at 10:27 AM.

  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: class, interface, enum expected error > Canīt find the Problem and thanks for helping!<

    GrussMitProgrammfenster.java:4: error: class, interface, or enum expected
    There is a missing } before the statement. The previous method needs to be finished with an ending } before starting a new method.

    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.

  3. The Following User Says Thank You to Norm For This Useful Post:

    wac (February 10th, 2018)

  4. #3
    Junior Member
    Join Date
    Feb 2018
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: class, interface, enum expected error > Canīt find the Problem and thanks for helping!<

    java_error2.jpg

    The errors continue.
    Attached Images Attached Images

  5. #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: class, interface, enum expected error > Canīt find the Problem and thanks for helping!<

    Please post code here in the thread, not images.
    If you don't understand my answer, don't ignore it, ask a question.

  6. #5
    Junior Member
    Join Date
    Feb 2018
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: class, interface, enum expected error > Canīt find the Problem and thanks for helping!<

    All errors found...iīll try to look more closely next time.

  7. #6
    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: class, interface, enum expected error > Canīt find the Problem and thanks for helping!<

    Ok, glad you got it working.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Class, Interface, Enum expected.
    By PizzaRolls in forum What's Wrong With My Code?
    Replies: 5
    Last Post: August 13th, 2013, 09:57 AM
  2. Error: class, interface, or enum expected.
    By duderski in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 12th, 2012, 02:26 PM
  3. Class, Interface, or Enum expected
    By SilvioSpeed in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 13th, 2012, 09:34 AM
  4. class,interface, or enum expected?
    By Eimaj in forum What's Wrong With My Code?
    Replies: 21
    Last Post: September 28th, 2012, 03:16 PM
  5. [SOLVED] Error: Class,interface or enum expected
    By FJIW in forum What's Wrong With My Code?
    Replies: 10
    Last Post: September 18th, 2011, 03:08 PM