There is There is no ~ There is no time to lose. There is no need to worry. There is no other choice. There is no way There is a slight problem with the elevator. There is always hope. There will be ~ There will be time for that later. There will be a call. There will be no trouble. There will be a party tomorrow. There will be a graduation ceremony next spring. There will be a hot meal ready. I..
I Think What are you going to do ~? 무엇을 할 예정이니? What are you going to do after you graduate? 너는 졸업하고 뭐할 생각이니? I’m thinking about ~ing ~할까 생각중입니다. I’m thinking about starting own business. 나는 창업을 해볼까 생각 중이야. Will you be able to do ? ~할 수 있겠니? Will you be able to finish your work and this project on time? If i try really hard, i think i can handle it. I’m thinking about going shopping. I’m thinkin..
1. 버블 정렬 - 인근 원소를 하나씩 비교하여 최대값 혹은 최소값이 맨 끝으로 이동 - 거품이 올라오는 것 처럼, 하나 씩 정렬 됨. - 처음 전체 원소를 비교하는데 (n-1) 번 비교연산, 두번째는 (n-2), 세번째, (n-3)... - (n-1)+(n-2)+(n-3)+...+2+1 = n(n-1)/2 - O(n^2) public class BubbleSort { public static void main(String[] args) { int[] data = { 12, 10, 8, 6, 3}; for (int i = 0; i data[k+1])..
1. Factory Method 패턴 이란? 객체를 생성하기 위한 interface를 두고, 이를 구현하는 subclass에서 실제 객체를 생성하도록 하는 패턴이다. new ~ 를 통해 객체를 생성하는 부분을 캡슐화 함으로써, 결합도록 낮츨 수 있다. public abstract class Component { abstract void paint(); } public class Button extends Component { // @override public void paint() { System.out.println("paint BigButton"); } } public class Label extends Component { // @override public void paint() { System..