reference type1 JAVA Reference Type (참조형) Test JAVA Reference Type (참조형) Test 예제) impoort java.io.IOException; public class Ex1 { public static void main(String[] args) throws IOException{ Scanner sc = new Scanner(System.in); System.out.print("byte 형 정수값 입력"); Byte bt=sc.nextByte(); //-128~127 System.out.println("바이트형의 정수값은: "+bt ); System.out.print("int 형 정수값 입력"); int it=sc.nextInt();//-2147483648 ~2147483648 System.out.println("int의 정수값은:.. 2023. 3. 3. 이전 1 다음