So you want to be a programmer. Well I'll start you in the right direction for Java, one of the best coding languages out there!
Why is it so good? It's fast, easy to learn the basics, easy to run files, and it has a lot of practical uses.
So how do you get started?
You can read my tutorial on the basics and getting started below, or you can look for the video coming out on my YouTube channel here.
Tutorial for a Google Sheets Discord Bot here.
If you are like me, you won't want to read all the directions, but it is important that you read all of them. I promise that I'll keep it short. ☺
1. Download Java. Click here and click "Free Java Download," then click download. Once finished, run it and install it.
2. Download the Java JDK, which can be found here.
3. Download Eclipse. Click here to go to Eclipse downloads. Look for something that looks like the picture below, then just install it.
As of 3-19-2018, the most recent version of Eclipse is Oxygen, but you should download which ever one is the most recent.
4. Open "Eclipse Marketplace," then search for "WindowBuilder" Simply download and install the add-on.
5. Alright, time to actually make something. Click "Create a new Java Project" on the welcome page. For the name, put HelloWorld, and click create.
6. Next, look to the left for "Package Explorer," under that you should see HelloWorld. Double click on it.
7. This is known as the Project, and it has all of it's files inside. It should look like this:
8. Select "src"
9. Go to the second to last icon on the top left, click the down arrow, and go to Swing > JFrame, and then click on it.
If you do not see this option, restart Eclipse and try again.
10. For name, type "HelloWorld," then click finish. (I put HelloWorldN because I already have a file named HelloWorld)
At this point you should be seeing some code on the middle box of your screen, but don't worry, we'll get to that later. For now, just click "Design" at the bottom on the window with the code in it.
If you don't see the design tab, restart Eclipse and try again.
11. Select the "JLabel" option in the design tab.
12. Then select the Center area.
13. Then type "Hello World" and hit enter. Select the HelloWorld file in the package explorer, then go to the top and select Run, and Run.
14. Select "Java Application," and select OK.
15. Click OK if this window pops up.
16. And this window should open:
Tada!
You have made your first Java program, but don't worry, this is just the beginning. I'll teach you more advanced techniques in the next tutorial, so keep an eye out. Also, don't get discouraged, this is just the Window Builder, but we'll be getting into the actual code that you saw earlier too, so just hang on tight, and we'll get there. If you had any problems, message me on YouTube or make a comment below.