Week 0 Hacks
Java anatomy
// Define Static Method within a Class
public class HelloStatic {
// Java standard runtime entry point
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
// A method call allows us to execute code that is wrapped in Class
HelloStatic.main(null); // Class prefix allows reference of Static Method
- Jupyter notebooks can run code with the right kernel
- Can use notebooks to do FRQs ### Java basics
- Everything is a class
- Methods have a specific signature
- Can use methods w/same name is they have different signatures (# of parameters)
- Static = single instance
- OBJECTS