Great job.
First programs are always exciting. Also, if any one replies to this with flame, just ignore it. It's been proven there's 10 year-old people on this forum who get a kick in making others miserable.
Back on topic, my advice to you is find out what kind of learner you are. Visual, or reading. Visual you should Google some video tutorials. Reading, I wouldn't recommend the official Java tutorials for learning, when I was a beginner it made things so much harder on how they referenced to things. There are some great tutorials that make things so much simpler. The official tutorials are great if you have a general idea about Java. TO ME, I never thought they were the best for newbies.
Another tip, if your new and you want to learn conventions (It's bad practice to learn the Mopar way first, as it becomes a habit) use:
This will auto conventionalize your code. Making things easier to learn to the human eye. And people will look at your code without puking.Code:ctrl + a, than ctrl + i
I added comments to show why this is incorrect practice. Here is the fix:Code:class one { public static void main(String[] args) { for(int i = 0; i <= 100; i += 1); System.out.println(i); } }
For every {, you need a }.Code:public class Practice { public void main(String[] args) { for(int i = 0; i <= 100; i++) { // bracket here since for loops need an opening bracket and a closing bracket System.out.println(i); } } }
Your loop was using the wrong format, use as:
for(initiate variable here; arguement ; ++ means to increase the variable by one, so putting i++ is better practice than i += 1) {
}
For the statements, you need to use an opening and a closing bracket.



.