can input output java