일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 향상된for문
- ifelse
- 객체
- 칼럼명에 별칭 지정
- 겟터
- .substring
- for문
- int오류
- 제어문
- 연산자
- SQL
- HAVING
- SELECT 절
- Join
- 프로그래머스
- 작성순서
- executeUpdate
- 삼항연산자
- 생성자
- setter
- 자바
- 상속
- getter
- 생성자쓰는이유
- .repeat
- sql오류
- Java
- 오라클
- 카카오인턴십
- 이터레이블
- Today
- Total
목록전체 글 (276)
CoDream
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 package main; import java.util.Scanner; public class Main { public static void main(String[] args) { System.out.println("==== 제어문 (조건문 - switch)===="); System.out.println("1월~ 12월 까지 중 월을 입력하세요"); // ?월이 몇일까지 있는지 알려주는 프로그램 // 정수입력받기 Scanner sc = new Scanner(System.in); int month = sc.nextInt(); if (month == 4 || month == 6 || month =..
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 package main; import java.util.Scanner; public class Main01 { public static void main(String[] args) { System.out.println("==== Rock,Scissors,Paper GAME ===="); int win = 0; int lose = 0; int draw = 0; Scanner sc = new Scanner(System.in..
반복문 for, while, do-while 세 가지 종류의 반복문을 사용합니다. 각 반복문은 다양한 상황에 적합하게 사용됩니다. for 문: 일정한 횟수만큼 반복할 때 주로 사용됩니다. 초기화식, 조건식, 증감식으로 구성되어 있습니다. for (초기화식; 조건식; 증감식) { // 반복할 코드 } 1부터 10까지의 숫자를 출력 for (int i = 1; i
1 2 3 4 5 6 7 8 9 10 11 12 13 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 1; i
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int sum = 0; for (int i = a; i
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int sum = 0; for (; a
12345678910111213141516171819import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int sum = 0; for (; a
1234567891011121314151617import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int sum = 0; for (int x = 1; x
12345678910111213141516import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int sum = 0; for (int x = 1; x