![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/T2wWP/btrGtPx0BYC/ii9qi9FuBG77LJhpm1oIbk/img.png)
해커랭크 Day 17 챌린지를 시작해보자. 🔥 오늘도 어제와 마찬가지로 Exception에 대해 배웠다. 어제는 예외를 try-catch로 처리했다면 오늘은 throws Exception으로 예외를 처리했다. 먼저 강의 소스코드부터 확인해보자. /* rule1: the score should never be negative rule2: there should be no way to lose points if we break a rule, throw an exception */ public class HotChocolate { public static final double tooHot = 185; public static final double tooCold = 160; public static void..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/U9FP6/btrGuT7paWT/TIsz8Q56TRZTprh6JeAwqk/img.png)
해커랭크 Day 16 챌린지를 시작해보자. 🔥 오늘은 Exception에 대해서 배웠다. 먼저 소스코드부터 확인해보자. public class ExceptionsPractice { public static void main(String[] args) { // int[] intArray = new int[10]; // System.out.println(intArray[10]); try { int[] c = new int[5]; System.out.println("Element 6 at index 5 = " + c[5]); } catch (ArrayIndexOutOfBoundsException e) { System.out.println("Exception thrown" + e); } finally { Sys..
- Total
- Today
- Yesterday
- 정보처리 산업기사
- stack
- hackerrank challenges
- 소스코드
- queue
- Java
- hackerrank
- 해커랭크 자바
- 22 정보처리산업기사
- BAEKJOON
- 정보처리산업기사 공부법
- 22 정보처리 산업기사
- 코드
- 해커랭크 자바 챌린지
- 정보처리산업기사
- JPA
- 디버깅
- 백준
- ORM
- 자바의 정석
- 챌린지
- 해커랭크
- 그리디
- 해커랭크 챌린지
- 강의
- 풀이
- LinkedList
- 자바
- challenges
- 개발자
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |