In java cout is System.out.print(); and for input you may use java.util.Scanner