Не не не [not answered] Method implementation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Не не не [not answered] Method implementation

Firstly, the code doesn't compile here but does compile in my PC. That's outstanding. Maybe I will remove Russian lang characters. Secondly, is it possible to implement the method which is marked as a comment? Access modifiers really hurt my brain. Help, please:) https://code.sololearn.com/c6Sx0C18ue7W/?ref=app

1st Apr 2017, 5:44 PM
Alex Snaidars
Alex Snaidars - avatar
3 Answers
+ 4
Comments can be executed. Use Unicode characters for that, as shown below. // the line below this gives an output // \u000d System.out.println("comment executed"); But this won't work in code playground. Try it in your PC.
2nd Apr 2017, 2:13 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
0
A simpler question. Can we declare objects of classes somewhere else out of the main(String[]args)?
1st Apr 2017, 6:34 PM
Alex Snaidars
Alex Snaidars - avatar
0
@Krishna Sorry, I meant the method marked as the comment in the code attached :)
2nd Apr 2017, 12:41 PM
Alex Snaidars
Alex Snaidars - avatar