์ธํฐํ์ด์ค ๋ฌธ์ ํ๊ธฐ
1. package math; public interface MathUtil { //๋งค๊ฐ๋ณ์๋ก ๋ฐ์ ๋ ์ ์ค ์์ ์๋ฅผ ๋ฆฌํด int getMin(int a, int b); //๋งค๊ฐ๋ณ์๋ก ๋ฐ์ ๋ฐ์ง๋ฆ์ ๊ฐ์ง ์์ ๋๋ ๋ฆฌํด //๋จ, ๋งค๊ฐ๋ณ์๋ก ๋ค์ด์จ ๋ฐ์ง๋ฆ์ด ์์๋ผ๋ฉด //๋๋ ๋ 0์ด ๋์ด์ผ ํจ. double getCircleArea(int radius); //์ฒซ๋ฒ์งธ ๋งค๊ฐ๋ณ์๋ก ๋ฐ์ ์์ n์ ๊ณฑ ๊ฐ์ ๋ฆฌํด //์ฒซ๋ฒ์งธ ๋งค๊ฐ๋ณ์ : 3 //๋๋ฒ์งธ ๋งค๊ฐ๋ณ์ : 4 //3 * 3 * 3 * 3 = ? int getMultpul(int num1, int num2); } - package math; public class MyMath implements MathUtil { @Override public int get..
2023.02.02