<aside> 💫 let’s learn Java besties!
hello my coding friends :) squiz here! java is one of the most popular coding languages in the world. many college use java as the core language for the computer science major. if you are interested in pursuing computer science in college, java is a great language to learn!
</aside>
there are many different online resources out there for learning java. there are courses, videos, tutorials, written documentation, cheatsheets, practice problems, & the list goes on! this notion page acts as a homebase for a variety of different java educational resources. at the bottom, i provide my approach for the best way to go about gaining experience in java, especially if you are preparing for an upcoming course in school. happy exploring & coding :)
<aside> 💡 tip: to get better at coding, set a goal to practice coding for X amount of minutes a day. the best way to get better at getting is to code!
</aside>
<aside> 🗣 below are some resources for becoming familiar with basic aspects of Java
</aside>
<aside> 🗣 having go-to websites to refer to when learning java is super helpful! below are some popular ones
</aside>
https://www.youtube.com/watch?v=l9AzO1FMgM8
<aside> 🗣 it is awesome to have a central place where info can live! below are some java cheatsheets from codecademy. click the link for more!
</aside>
<aside> 🗣 practice problems are one of the best ways to become more confident with java. below are examples of different online resources filled with practice problems!
</aside>
https://open.spotify.com/embed/playlist/37i9dQZF1DX5trt9i14X7j?utm_source=generator
<aside> 💡 tip: being familiar with computer science vocabulary before taking a computer science class makes it a lot easier to retain new info
</aside>
<aside> 🗣 taking an online course is a great way to learn java! below are some examples of good courses
</aside>
<aside> 🗣 creating your own projects is a great way to enhance your programming skillsets! below are websites with different practice projects!
</aside>
<aside> 🗣 read the comments for a better understanding of what different lines of code mean
</aside>
// this code is adapted from GeeksforGeeks
// java program to print Hello World
public class GFG {
public static void main(String[] args) {
// command for printing something to the console in java
System.out.println("Hello World");
}
}
Hello World
// this code is adapted from Programiz
// java program to print different arithmetic equations
class Main {
public static void main(String[] args) {
// declare variables a and b
int a = 12;
int b = 5;
// addition operator (+)
System.out.println("a + b = " + (a + b));
// subtraction operator (-)
System.out.println("a - b = " + (a - b));
// multiplication operator (*)
System.out.println("a * b = " + (a * b));
// division operator (/)
System.out.println("a / b = " + (a / b));
// modulo operator (%)
System.out.println("a % b = " + (a % b));
}
}
a + b = 17
a - b = 7
a * b = 60
a / b = 2
a % b = 2
// this code is from Programiz
class Main {
public static void main(String[] args) {
// create an array
int[] age = {12, 4, 5, 2, 5};
// access each array elements
System.out.println("Accessing Elements of Array:");
System.out.println("First Element: " + age[0]);
System.out.println("Second Element: " + age[1]);
System.out.println("Third Element: " + age[2]);
System.out.println("Fourth Element: " + age[3]);
System.out.println("Fifth Element: " + age[4]);
}
}
Accessing Elements of Array:
First Element: 12
Second Element: 4
Third Element: 5
Fourth Element: 2
Fifth Element: 5
<aside> 1️⃣ watch “Java in 100 Seconds” and “What is Java?”
these are quick videos that give you rundowns of the java programming language and are a good introduction to learning java!
</aside>
<aside> 2️⃣ read through the java primers
one of the most challenging parts of learning how to code is how unfamiliar coding terminology can be when first getting started. read through one or more of the java primers until you feel comfortable with the vocabulary. refer back to these as you continue learning java
</aside>
<aside> 3️⃣ read + download the java cheatsheets
these are all super, super helpful guides for learning java. i recommend reading through these in the order listed. download and keep them handy as you continue learning
</aside>