title: how to handle a command-line input like "java.exe program < s1.in"
body: <p>I know how to use string args to get the input from the command-line, and it is working fine with <code>input = args[0]</code> where my input is <code>java.exe program s1.in</code></p>
  
  <p>But I need to run a compare program in terminal. So my input must have the "&lt;" symbol. However, then I can't get my input values using <code>input = args[1]</code>. When I type this in, the args.length become 0. Why does this happen?</p>
  
  <p>As an aside, does anyone know how to best search for this kind of term in google? Itthink google does not recognize "&lt;" in the search entry. </p>
  
  <p>Thank you</p>