[JAVA] ch03-08. 덧셈
·
JAVA/예제
public class Ex08 {//덧셈. public static void main(String[] args){ byte a = 10; byte b = 20; byte c = (byte)(a+b); //byte c = a+b; // result type is int. System.out.println(c); } }