code + - / * ops directly in java, thanks yokolet