![]() |
Complete Java Newbie
No matter how many times I check it seems OK, but the compiler keeps screaming that there are errors, very frustrated any help will be greatly appreciated. The two errors are at the bottom of the program I will also be able to get a good nights sleep not thinking about the code and were I went wrong cheers..
Code:
// java tutorial 68 JRadioButton |
Re: Complete Java Newbie
Very interesting.
Might I suggest the following? While you are learning Java, try to lign up your code logically, like the following example: Code:
Notice how the brackets line up? In your code, you have brackets that EXCLUDE portions of the code "add(box)" from the body of the method they belong to. When you align the brackets, things start to look a lot better all of a sudden and it's easy to spot the problem areas. Formatting code properly is going to help you a lot, especially as your programs grow in size and complexity. I hope this helps. |
Re: Complete Java Newbie
see the errors in your code in order to compile
Code:
import java.awt.*; |
| All times are GMT +5.5. The time now is 23:31. |