๐Ÿ˜ถโ€๐ŸŒซ๏ธ [์—‰์งง์‹] JAVA๋กœ ์ฒซ ๊ธ€์ž๋งŒ ๋Œ€๋ฌธ์žํ™” ํ•ด๋ณด์•˜๋‹ค

0
post-thumbnail

JAVA๋กœ ์ฒซ ๊ธ€์ž๋งŒ ๋Œ€๋ฌธ์žํ™” : str.substring(0,1).toUpperCase() + str.substring(1);






String str = "mOoN";


๐ŸŒŸ ์ „์ฒด ์†Œ๋ฌธ์žํ™” โฌ‡๏ธ

str.toLowerCase();


๐ŸŒŸ ์ „์ฒด ๋Œ€๋ฌธ์žํ™” โฌ‡๏ธ

str.toUpperCase();


๐ŸŒŸ ์ฒซ ๊ธ€์ž๋งŒ ๋Œ€๋ฌธ์žํ™” โฌ‡๏ธ

str.substring(0,1).toUpperCase() + str.substring(1);

profile
๋ช‡ ๋ฒˆ์„ ๋„˜์–ด์ ธ๋„ ์•ž์œผ๋กœ ๊ณ„์† ๋‚˜์•„๊ฐ€์ž

0๊ฐœ์˜ ๋Œ“๊ธ€