Fill in the class
In Java, classes are the fundamental building blocks that organize your code. Think of them as containers that hold related functionality together. Every Java program you write will use at least one class!
This exercise is part of the course
Introduction to Java
Exercise instructions
- Create a
classcalledHelloClass.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
// Create a class called HelloClass
____ ____ {
public static void main(String[] args) {
System.out.println("I can do classes in Java now!");
}
}