강의

멘토링

커뮤니티

Inflearn Community Q&A

lilycat922699's profile image
lilycat922699

asked

Introduction to Java Programming Course (renewed version) - From beginner to developer employment!!

Special characters and formatting characters

역슬래쉬

Written on

·

355

0

System.out.printf("소문자 \'%c\'의 대문자는 \'%c\'입니다.", 'a', 'A');

System.out.printf("소문자 '%c'의 대문자는 '%c'입니다.", 'a', 'A');

수업 잘 듣고 있습니다 감사합니다!

위 아래 결과값이 똑같이 나오는데 차이점이 뭔가요?

java

Answer 1

0

\'가 작은따음표이니까 

\'%c\'의 결과는 '%c'가되겠죠? 그래서 위 아래 결과값이 똑같이나오는거에요.

lilycat922699's profile image
lilycat922699

asked

Ask a question