top of page

Intro to Java

In grade 10 as part of the STEAM program, one of the courses I took was grade 11 Computer Science where we used the eclipse Java IDE to create programs and learn about coding in Java. We learned basics such as creating variables, methods, classes, arrays and the inner workings of the coding language such as what is stored in memory, primitive and reference data types and that Java is built on a C compiler. We used Java to create many programs 

What you need

To code in Java, you would need to download a Java IDE (Integrated development environment). A place where you will be able to create and edit class files. One recommended resource is Eclipse, a free and in-depth  Java developer IDE. 
A good alternative is Replit, a Java IDE that is limited but work on your browsers.


You may find download links on their websites, click the button below to go to their website

226777.png
12-122645_eclipse1024-eclipse-ide-icon-png-transparent-png.png

Setting up

If you chose to download and use Eclipse, here are some steps to help you get set up

Step 1: run through the setup wizard 

After downloading the zip file off the Eclipse website, extract all the contents and run the setup wizard and quickly run through it, choosing which drive or folders you want eclipse to be installed on

eclipse install.png

Step 2: launch eclipse

After installing Eclipse run eclipse and upon running a prompt will show up asking what workspace to use. This simply means what drive and folder you want your work to be saved on

Step 3: create new project

To start using Eclipse we need to create a new Java project to store all of our Java class files. At the top left under "new" click new Java project.

Screenshot 2023-01-25 230401.png

Put anything you like as the project name
leave everything else at default and uncheck "Create module-info.java file"

Step 4: create new class

After creating a new Java project, open the java project folder and right click on src. Click "new class"

Screenshot 2023-01-25 230540.png

Name your class file appropriately and check "public static void main" and leave everything else as default

Screenshot 2023-01-25 232607.png

step 5: begin coding java!

You now have a space to code and learn Java have fun! To get started you may want to go to the next section to learn about Java and its data types -------->

© 2024 by Samuel Wong.
Powered and secured by Wix

Call

(1) + 437-216-9455

Contact

@Brebeuf STEAM

  • Twitter
  • Instagram
bottom of page