Knowledge/Interview Questions2 [Java] 지수 함수 구현 /** * Created with IntelliJ IDEA. * User: hajadc.tistory.com * Date: 8/25/13 * To change this template use File | Settings | File Templates. */ public class Power { private static final double BASE = 3.1; private static final int POWER = 8; private static int count = 0; public static void main(String[] args) { count = 0; System.out.println("Operation: " + BASE + "^" + POWER); System.out.println(.. 2013. 8. 26. [Java] '/', '%' 연산자 쓰지 않고 나눗셈 구현하기 /** * Created with IntelliJ IDEA. * User: hajadc.tistory.com * Date: 8/25/13 * To change this template use File | Settings | File Templates. */ public class Division { private static final int DIVISOR = 2; private static final int DIVIDEND = 1024; private static int count = 0; public static void main(String[] args) { // 1024 / 2 count = 0; System.out.println("Operation: " + DIVIDEND + " / " + DI.. 2013. 8. 26. 이전 1 다음