a simple java terminal app