toUppercase

문자열(알파벳) 대문자/소문자로 변환 1. toUpperCase() toUpperCase() 메서드는 문자열의 모든 알파벳을 대문자로 변환합니다. String str = "hello World"; System.out.println(str.toUpperCase()); // "HELLO WORLD" 2. toLowerCase() toLowerCase() 메서드는 문자열의 모든 알파벳을 소문자로 변환합니다. String str = "hello WORLD"; System.out.println(str.toLowerCase()); // "hello world"
코딩무니
'toUppercase' 태그의 글 목록