Just started learning java.
Please let me know why the piece of code for String = NULL does not execute when I do not give any command line input. It does not print "No input detected".
import java.lang.*;
public class Echo{
public static void main (String S[]){
if (S!=null){
for (int i=0;i<S.length;i++){
System.out.print(S[i]);
}
}
else{
System.out.println("No input detected");
}
}
}