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: Beginner Averaging Grade - ALMOST COMPLETE

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

    Default Beginner Averaging Grade - ALMOST COMPLETE

    Solved - would rather not have class mates copy my work. Delete if possible
    Last edited by m0ranwad; March 23rd, 2014 at 11:06 PM. Reason: Solved


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Beginner Averaging Grade - ALMOST COMPLETE

    Welcome to the forum! Thanks for taking the time to learn how to post code correctly. If you haven't already, please read this topic to learn other useful info for new members.

    Unfortunately, this forum doesn't number code, or none of us have figured out how.

    The error message you have typically indicates that there are missing or unmatched curly braces. Indenting your code correctly usually shows this problem. Your actionPerformed() method seems the most problematic with an empty if clause and then code outside any method at the end. The problems there throw off the rest of the code.

    Indent your code correctly and then check your curly braces.

  3. #3
    Junior Member
    Join Date
    Mar 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Beginner Averaging Grade - ALMOST COMPLETE

    Quote Originally Posted by GregBrannon View Post
    Indent your code correctly and then check your curly braces.
    Thanks! There is no auto-indent feature within TextPad, is there?

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Beginner Averaging Grade - ALMOST COMPLETE

    I have no experience with it - well, none since Windows 3.11, anyway - so I can't say.

Similar Threads

  1. Why isn't this grade averaging working?
    By import.Snupas in forum What's Wrong With My Code?
    Replies: 6
    Last Post: November 23rd, 2013, 11:54 AM
  2. How do improve the accuracy of this averaging program
    By Alge4 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: September 10th, 2013, 09:23 PM
  3. Complete beginner (college student) - code not working!!
    By javanewbie085 in forum What's Wrong With My Code?
    Replies: 6
    Last Post: January 16th, 2013, 09:19 AM
  4. Replies: 10
    Last Post: October 26th, 2011, 02:22 PM
  5. Grade averaging program with array and multiple methods.
    By jeremykatz in forum What's Wrong With My Code?
    Replies: 8
    Last Post: November 9th, 2009, 09:44 PM