Rubberduck-Debugging

자바 로또, bubbleSort, FileWriter, math.random 본문

개발자/20181127 교육과정

자바 로또, bubbleSort, FileWriter, math.random

P缶 2018. 12. 10. 18:43

* bubble sort    (=> Treeset 아닌 Hashset 쓰거나, 배열 쓸 경우 순서대로 정렬해주는 기능)

1
2
3
4
5
6
7
8
9
      for (int i=0; i < list.length; i++) {
            for (int j = i+1; j < list.length; j++) {
                if (list[i] > list[j]) {
                    int temp = list[i];
                    list[i] = list[j];
                    list[j] = temp;
                }
            }
        }
cs



'개발자 > 20181127 교육과정' 카테고리의 다른 글

삼항연산자  (0) 2018.12.12
eXERD 포워드 엔지니어링 연결설정  (0) 2018.12.11
git ignore 적용  (0) 2018.12.10
UML(Unified Modeling Language)  (0) 2018.12.09
[8일차]ServletContext, filter, resultType="hashmap"  (0) 2018.12.06