정수형
[Java Study] java 데이터 타입(숫자, 문자)
public class Data_and_Operation { public static void main(String[] args){ System.out.println(6); //Number System.out.println("six"); //String System.out.println("6"); //String 6 System.out.println(6+6); //12 더하기연산자 System.out.println("6"+"6"); //66 결합연산자 System.out.println(6*6); //36 // System.out.println("6"*"6"); System.out.println("1111".length()); // System.out.println(1111.length()); //에러! ..