Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 파이썬
- java
- mlb stats api
- 배포
- JQuery
- 자바스크립트
- 스프링
- oracle
- 판다스
- 시간
- 제이쿼리
- kotlin
- 오라클
- streamlit
- Python
- Android
- HTML
- 프로젝트
- 코틀린
- Spring
- 어플
- javascript
- pandas
- 기록
- MLB
- gcp
- 자바
- CSS
- 안드로이드
- 앱
Archives
- Today
- Total
목록거리 (1)
develope_kkyu
[JAVA] 두 점 사이의 거리 구하기
MyPoint.java public class MyPoint { public int x; public int y; MyPoint(int x, int y){ this.x = x; this.y = y; } public double getDistance(int i, int j) { double dis; dis = Math.sqrt((this.x-i)*(this.x-i) + (this.y-j)*(this.y-j)); return dis; } } MyPointExam.java public class MyPointExam { public static void main(String[] args) { //System.out.println(Math.sqrt(4));// 2.0*2.0 == 4 //System.out.pr..
JAVA/Java SE
2022. 12. 21. 16:27