일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 국회의원 & 높으신 분들 어록
- https://tecoble.techcourse.co.kr/post/2021-08-07-logback-tutorial/
- https://minkwon4.tistory.com/161
- Today
- Total
OPEN between Secret
import java.util.Scanner; public class ExceptionExcample1 { public static void main (String [] args) { Scanner sc = new Scanner(System.in); int divisor = 0; int dividend = 0; System.out.print("나뉨수를 입력하시오 :"); dividend = sc.nextInt(); System.out.print("나눗수를 입력하시오:"); divisor = sc.nextInt(); try { System.out.println(dividend/divisor); } catch (ArithmeticException e) { System.out.println("0으로 나눌 수 ..
import java.util.Scanner; public class maytoone { public static void main (String [] args){ Scanner sc = new Scanner(System.in); int intArray [] = new int[5]; double sum = 0; for( int i = 0 ; i
import java.util.Scanner; public class maytoone { public static void main( String [] args){ Scanner sc = new Scanner(System.in); int inArray[] = new int [5]; int max = 0; for ( int i = 0 ; i max) max = inArray[i]; } System.out.println("입력된 수에서 가장 큰 수는" + max + "입니다."); } } -------------------------------------------------------------- inArray[i] = sc.nextInt(); 생성된 배열에다가 입력받은거 한개씩 저장하는방법 이다.(이게 ..