"์๋, ์๋ฏธ๊ณ !"

"์ซ์ ์ฐ์ฐ์์ ๋ํด ์๋ ค๋๋ฆฌ๋ ค๊ณ  ํฉ๋๋ค."

"Bilaabo๋ ์ด๋ฏธ ๋์๊ฒ ๋งํ๋ค!"

"์ ๋ง? ๊ทธ๋ผ ๋ช ๊ฐ์ง๋ง ๋ฌผ์ด๋ณผ๊ฒ."

"์ด๋ป๊ฒ ๋ณ์๋ฅผ 1์ฉ ์ฆ๊ฐ์ํค๋์? ๊ฐ๋ฅํ ํ ๋ง์ ์ต์์ ์ฃผ์ธ์."

"์ฌ์ด."

์ํธ
``x++;``
``++x;``
``x = x + 1;``
``x += 1;``

"๊ทธ๋ ์ต๋๋ค. ์ด์  ๋ณ์์ 2๋ฅผ ๊ณฑํด์ผ ํ๋ค๋ฉด ์ด๋ป๊ฒ ํด์ผ ํฉ๋๊น?"

"์๋ฃ."

์ํธ
``x = x * 2;``
``x *= 2;``
``x = x + x;``
``x += x;``
``x = x << 1;``
``x <<= 1;``

"์ด๋ป๊ฒ ๋ณ์๋ฅผ 9์ ๊ณฑ์ผ๋ก ์ฌ๋ฆฌ๋์?"

"์ฌ์ ํ ์๊ฐํ  ํ์๊ฐ ์์ต๋๋ค."

์ํธ
``x = x*x*x*x*x*x*x*x*x;``
``````x = x*x*x; (x3)
x = x*x*x; (x3*x3*x3 = x9)``````
``x = Math.exp( 9 * Math.log(x)); // x9 == exp(ln(x9)) == exp(9*ln(x));``

"์ซ์์ ์ ๊ณฑ๊ทผ?"

"์ผ์ดํฌ ์กฐ๊ฐ."

์ํธ
``Math.sqrt(x)``
``x = Math.exp(0.5 * Math.log(x)); // x1/2 = exp(ln(x0.5)) == exp(0.5*ln(x));``

"ํ์ด/2์ ์ฌ์ธ?"

์ํธ
``x = Math.sin(Math.PI/2);``

"0๊ณผ 1 ์ฌ์ด์ ๋์?"

์ํธ
``x = Math.random();``

"0๊ณผ 3 ์ฌ์ด์ ๋์?"

์ํธ
``x = Math.random() *3;``

"0์์ 10 ์ฌ์ด์ ๋์?"

์ํธ
``x = Math.random() *10;``

"-5์์ 5 ์ฌ์ด์ ๋์?"

์ํธ
``x = Math.random() *10 - 5;``

"-1๊ณผ 1 ์ฌ์ด์ ๋์?"

์ํธ
``x = Math.random() *2 - 1;``

"0์์ 100 ์ฌ์ด์ ๋์?"

"๋ ๊ฐ์ง ์๋ฃจ์์ด ์์ต๋๋ค."

์ํธ
``int x = (int) (Math.random() *100);``
``````Random random = new Random();
int x = random.nextInt(100);``````

"ํ๋ฅญํฉ๋๋ค! ๊ฐ๋ช๋ฐ์์ต๋๋ค. ์ฃผ์ ๋ฅผ ํ๋ฅญํ๊ฒ ํ์ํ์จ์ต๋๋ค."