0

Help!

I am very confused. Why do I add “main” and what is “println”

25th Oct 2019, 8:33 AM
HelenaBla
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!")
25th Oct 2019, 9:20 AM
Seb TheS
Seb TheS - avatar