https://github.com/lxxjn0/java-coordinate
🧮 좌표 계산기 미션을 진행하는 Repository
https://github.com/lxxjn0/java-coordinate
coordinate java
Last synced: 11 months ago
JSON representation
🧮 좌표 계산기 미션을 진행하는 Repository
- Host: GitHub
- URL: https://github.com/lxxjn0/java-coordinate
- Owner: lxxjn0
- Created: 2020-12-28T09:59:50.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-28T10:00:05.000Z (over 5 years ago)
- Last Synced: 2025-07-09T11:53:58.991Z (11 months ago)
- Topics: coordinate, java
- Language: Java
- Homepage: https://github.com/woowacourse/java-coordinate
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🧮 java-coordinate
> 좌표 계산기 미션을 진행하는 Repository
## 1. enum 실습
### 기능 구현 목록
- 다음 코드에서 2, 3, 4 대신에 enum을 적용
```java
...
static {
creators.put(2, new LineCreator());
creators.put(3, new TriangleCreator());
creators.put(4, new RectangleCreator());
}
...
```
## 2. exception 실습
### 기능 구현 목록
- Point 생성자의 IllegalArgumentException을 RuntimeException(Unchecked Exception)으로 변경
- FigureFactory의 getFigure() 메소드의 IllegalArgumentException을 CompileTimeException(Checked Exception)으로 변경
- Point 생성자와 FigureFactory의 getFigure() 메소드에서 throw하는 Exception을 main에서 catch해 예외처리
## 3. 원시 값 포장 실습
### 기능 구현 목록
- Point의 x, y값에 해당하는 int 값을 새로운 객체로 포장
- Point의 x, y값을 포장한 객체를 1 ~ 24의 값을 미리 생성한 후 재사용 가능한 구조로 변경
## 우아한테크코스 코드리뷰
- [온라인 코드 리뷰 과정](https://github.com/woowacourse/woowacourse-docs/blob/master/maincourse/README.md)