Java - 출력문(printf)

잠자는 고양이·2023년 10월 25일
0

Java

목록 보기
14/73
String cmd = "";

System.out.println(); // 줄바꿈 출력문
System.out.print(); // 한줄로 출력문

System.out.printf("입력하신 명령 : %s\n", cmd); // %s에  cmd 가 들어간다.  원하는 위치에 넣기.

\n  = 줄바꿈
profile
개발자가 되고 싶은 잠자는고양이

0개의 댓글