๋ฐ์ํ
๐ ๋ฌธ์ URL ๐
์์ค ์ฝ๋
String[] engNum = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"};
//i๋ 0~9
for(int i=0; i<10; i++){
s = s.replace(engNum[i], Integer.toString(i));
}
int answer = Integer.parseInt(s);
๋๋ฌด ๊ฐ๋จํด์.. ์ข๋ค...ใ
ใ
....๋ค ์ด๋ฐ ๋ฌธ์ ์์ผ๋ฉด....
728x90
๋ฐ์ํ
'๊ฐ๋ฐ > ์๊ณ ๋ฆฌ์ฆ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[ํ๋ก๊ทธ๋๋จธ์ค/JAVA] ์ฒด์ก๋ณต (0) | 2022.07.25 |
---|---|
[ํ๋ก๊ทธ๋๋จธ์ค/JAVA] ํคํจ๋ ๋๋ฅด๊ธฐ (0) | 2022.07.25 |
[ํ๋ก๊ทธ๋๋จธ์ค/JAVA] ์ ๊ท ์์ด๋ ์ถ์ฒ (0) | 2022.07.24 |
[ํ๋ก๊ทธ๋๋จธ์ค/JAVA] ๋ก๋์ ์ต๊ณ ์์์ ์ต์ ์์ (0) | 2022.07.24 |
[ํ๋ก๊ทธ๋๋จธ์ค/JAVA] ์ ๊ณ ๊ฒฐ๊ณผ ๋ฐ๊ธฐ (1) | 2022.07.24 |
๋๊ธ