StringBuffer1 ์ค๋ณต๋ ๋ฌธ์ ์ ๊ฑฐ - Java [ํ๋ก๊ทธ๋๋จธ์ค ์ ๋ฌธ] โค๏ธ Problem ๋๋ณด๊ธฐ ๋ฌธ์ ๋ฌธ์์ด my_string์ด ๋งค๊ฐ๋ณ์๋ก ์ฃผ์ด์ง๋๋ค. my_string์์ ์ค๋ณต๋ ๋ฌธ์๋ฅผ ์ ๊ฑฐํ๊ณ ํ๋์ ๋ฌธ์๋ง ๋จ๊ธด ๋ฌธ์์ด์ returnํ๋๋ก solution ํจ์๋ฅผ ์์ฑํด์ฃผ์ธ์. ์ ํ ์ฌํญ 1 ≤ my_string ≤ 110 my_string์ ๋๋ฌธ์, ์๋ฌธ์, ๊ณต๋ฐฑ์ผ๋ก ๊ตฌ์ฑ๋์ด ์์ต๋๋ค. ๋๋ฌธ์์ ์๋ฌธ์๋ฅผ ๊ตฌ๋ถํฉ๋๋ค. ๊ณต๋ฐฑ(" ")๋ ํ๋์ ๋ฌธ์๋ก ๊ตฌ๋ถํฉ๋๋ค. ์ค๋ณต๋ ๋ฌธ์ ์ค ๊ฐ์ฅ ์์ ์๋ ๋ฌธ์๋ฅผ ๋จ๊น๋๋ค. ์ ์ถ๋ ฅ ์ & ์ค๋ช no my_string result 1 "people" "peol" 2 "We are the world" "We arthwold" "people"์์ ์ค๋ณต๋ ๋ฌธ์ "p"์ "e"์ ์ ๊ฑฐํ "peol"์ returnํฉ๋๋ค. "We are the w.. 2022. 11. 27. ์ด์ 1 ๋ค์