In the code below:
public static void main(String[] args) {
String echo = (args.length == 1) ? "Your name is "+args[0]: "Wrong number of arguments!";
System.out.println(echo);
}
It will print your name if you give only one argument, otherwise it will warn you with wrong number of arguments, which is pretty clear, but how does ?:
operator work here?