'How to redirect a file as an input to Java program with windows powershell?

In bash usual way is java Test.java < data.txt What is the equivalent way for windows powershell. I am on poweshell 3.0.

Please do not ever close the question without finding any link to the answer. If you don't know the answer just pass it.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source