As far as i know the class containing the executable main function needs to be declared as public. Please do correct me if wrong | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

As far as i know the class containing the executable main function needs to be declared as public. Please do correct me if wrong

26th Jul 2018, 12:16 PM
Shubhangi Gupta
Shubhangi Gupta - avatar
2 Antworten
26th Jul 2018, 12:23 PM
Mohammad Amir Aqeel
Mohammad Amir Aqeel - avatar
0
Then how is this working with public class https://www.sololearn.com/learn/Java/2137/?ref=app
26th Jul 2018, 1:10 PM
Shubhangi Gupta
Shubhangi Gupta - avatar