Answer the question
In order to leave comments, you need to log in
How to pass an argument without parentheses?
I am writing code:
public class Program
{
static void println(String x) {
System.out.println(x);
}
public static void main(String[] args) {
}
}
Answer the question
In order to leave comments, you need to log in
No, println
it's a method, not an operator. The method without parentheses cannot be called.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question