산술 연산자
산술 연산자 더하기(+), 빼기(-), 곱하기(*), 나누기(/), 나머지(%)로 총 5개 출처, 이것이 자바다 package ch03.sec02; /* 산술연산자 예제 +, -, *, /, % */ public class ArithmethicOperatorExample { public static void main(String[] args) { byte v1 = 10; byte v2 = 4; int v3 = 5; long v4 = 10L; //연산에서 변수의 타입이 byte, short 는 int형으로 자동변환된다. int result1 = v1 + v2; //int result1 = (int)v1 + (int)v2; System.out.println("result1: " + result1); long..