printf 썸네일형 리스트형 printf, println, print 차이 System.out.printf("%-4s %c %3d \n", "둘리" , 'A', 12);//String type : 왼쪽 4자리수 정렬//char type : 출력//int type : 3자리수 정렬//서식 형태의 자료 출력 System.out.println("둘리 A 12");//직관적 출력뒤 줄바꿈 System.out.print("둘리 A 12\n");//직관적 출력 줄바꿈 \n 입력 둘리 A 12둘리 A 12둘리 A 12 더보기 이전 1 다음