프로그래밍/자바
[자바] 자바 레퍼런스 데이터 타입 예제
[M]
2016. 12. 25. 14:28
public class Main { public static void main(String[] args) { /* 레퍼런스 데이터 타입 */ Integer i = 1; Float f = 1.1f; Double d = 1.2; Boolean b = true; Character c = 'a'; String s = "Hello World"; System. out.println( i); System. out.println( f); System. out.println( d); System. out.println( b); System. out.println( c); System. out.println(s ); } } |