에러모음집
-
Exception in thread "main" java.util.InputMismatchException에러모음집 2023. 11. 18. 12:56
package Life; import java.util.Scanner; public class AbsoluteValue { public static void main(String[] args) { //일단 절대값을 입력할 값을 넣을 변수를 만든다 . //절대값을 실행할 건지 Y,N를 넣을 스캐너 변수를 만든다 //while문을 이용해서 계속 Y를 넣는 다면 계속해서 절대값을 만드는 것이고 //N를 입력 하면 While문을 빠져 나오게 한다 . //if문을 이용해서 절대값을 넣으면 , //절대값
-
오류 컴파일 오류, 런타임 오류에러모음집 2023. 11. 5. 16:30
package chap_11; public class _01_TryCatch { public static void main(String[] args) { //예외 처림 //오류 컴파일 오류, 런타임 오류 // int i="문자열"; int [] arr=new int[3]; arr[5] =100; S s=new S(); s.methodA(); } } class S { public void methodA(){ this.methodA(); ///무한 반복호출 -> stack overflow error } } Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5 at chap_11._01_TryCatch.main(_01_TryCatch.j..
-
앞에 에러가 나서 quiz3가 나오지 않는 이유에러모음집 2023. 10. 25. 15:41
Document //복습1 * 2023년 9월 25일로 부터 오늘까지 몇초, 몇일 이 지났는 지 확인! let mesc = Date.parse("2023-9-25"); const today = new Date(); let mesc2 = Date.parse(today); let live = mesc2 - mesc / (60 * 60 * 24 * 1000); // const live_day=new Date(live) document.getElementById("quiz1").innerHTML = live; ..
-
-
자바스크립트 에러 Date.parse()에러모음집 2023. 10. 25. 10:27
Document //복습1 * 2023년 9월 25일로 부터 오늘까지 몇초, 몇일 이 지났는 지 확인! let mesc = Date.parse("2023-9-25"); const today = new Date(); let mesc2 = Date.parse(today); let live = mesc2 - mesc / (60 * 60 * 24 * 1000); // const live_day=new Date(live) document.getElementById("quiz1").innerHTML = live; ..
-