Help! | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Help!

I am very confused. Why do I add ā€œmainā€ and what is ā€œprintlnā€

25th Oct 2019, 8:33 AM
HelenaBla
1 Resposta
+ 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