0
Help!
I am very confused. Why do I add “main” and what is “println”
1 Réponse
+ 2
Main is the start point of a program in many languages.
println is a function used to print text on the screen.
If it feels too confusing you can try a simpler language, such as Python, where Java's:
class MyClass {
public static void main(String[ ] args) {
System.out.println("Hello world!");
}
}
gets replaced to Python's:
print("Hello world!")