0
Try to answer
Java topic
3 Answers
+ 1
The System.out.println() method doesn't return anything I.E. it returns void! This means that you can't pass it to the method itself as there isn't any overloaded version of the method that will accept a void type as an argument.
https://docs.oracle.com/javase/7/docs/api/java/io/PrintStream.html#println()
0
void type not allowed..error
0
Error, because you can't nest printing System.out.println() in Java.
You can nest print statements in Python...
https://code.sololearn.com/cQ07MzpV2l9b/?ref=app