I have a Java program that accepts input text typed in from standard input
is there a way to find if the user has typed in the text or redirected input from a file?
$ java prog this text is typed in from the keyboard
$ java prog < file.txt
Thanks!