+ 2
Is their any way to print something on the console without using main method in java?
4 Respuestas
+ 1
Write in static block.. But from jdk7, must need main method..
Pls Use search bar, to before posting..
https://www.sololearn.com/discuss/1296626/?ref=app
https://www.sololearn.com/discuss/718895/?ref=app
https://www.sololearn.com/discuss/1942740/?ref=app
https://www.sololearn.com/discuss/1538588/?ref=app
https://www.sololearn.com/discuss/2066932/?ref=app
https://www.sololearn.com/discuss/892738/?ref=app
https://www.sololearn.com/discuss/990294/?ref=app
https://www.sololearn.com/discuss/350267/?ref=app
+ 2
yes.. you can use python or ruby...
Just kidding since I see u are experienced.
Actually you need main.
+ 1
Oma Falk modern problems require modern solutions
- 1
You thats it.
👍