Draw triangle code in java