Sample output java