일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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://www.inflearn.com/course/lecture?courseslug=%ea%b9%80%ec%98%81%ed%95%9c%ec%9d%98-%ec%8b%a4%ec%a0%84-%ec%9e%90%eb%b0%94-%ea%b8%b0%eb%b3%b8%ed%8e%b8&unitid=194711
- sendRedirect
- 매핑 #
- https://www.inflearn.com/course/lecture?courseslug=%ea%b9%80%ec%98%81%ed%95%9c%ec%9d%98-%ec%8b%a4%ec%a0%84-%ec%9e%90%eb%b0%94-%ea%b8%b0%eb%b3%b8%ed%8e%b8&unitid=194709&category=questiondetail&tab=community&q=1314387
- webserver #WAS #ServerApp
- WAS
- 피그마
- JSON형식의 response
- CONTINUE
- POST방식
- 톰캣
- Servlet
- https://www.inflearn.com/course/lecture?courseslug=%ea%b9%80%ec%98%81%ed%95%9c%ec%9d%98-%ec%8b%a4%ec%a0%84-%ec%9e%90%eb%b0%94-%ea%b8%b0%eb%b3%b8%ed%8e%b8&unitid=194690
- 김영한
- 화면정의서
- 다형성 #부모타입 #자식타입
- while문
- Dispatcher
- GET방식
- xml
- Request
- Spring MVC
- Break
- 요구사항정의서
- Forwarding
- Today
- Total
목록개인공부 (27)
Step it up now

변수가 기본형일 때public class MethodChange1 { public static void main(String[] args) { int a = 10; System.out.println("메서드 호출 전: a = " + a); changePrimitive(a); System.out.println("메서드 호출 후: a = " + a); } static void changePrimitive (int x){ // a의 값 10을 넘겨서 받아서 10을 가지고 있음 x = 20; // 10과 20 둘다 가지고 있음 }} 변수가 참조형일 때public class MethodChange2 { publi..

arr.length vs arr[row].length public class ArrayDi2 { public static void main(String[] args) { // 2x3 2차원 배열을 만든다 int [ ] [ ] arr = { { 1, 2, 3}, { 4, 5, 6} }; //행2, 열3 for (int row=0; row arr의 행의 개수 for (int column =0; column < arr[row].length ; column ++){ // arr[row].length = 한 행의 개수 System.out.print(arr[row][column] + " "); } System.out.println(); //한 행..

public class Scanner1 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("문자열을 입력하세요: "); // scanner.nextLine()가 입력한 문자열을 읽어서 str로 넣어준다 String str = scanner.nextLine(); //입력을 String으로 가져온다 System.out.println("입력한 문자열: " + str); System.out.print("정수를 입력하세요: "); int intValue = scanner.nextInt(); //입력을 int로 가져온다 System.out.println("입력한 정수: " + intV..

while 1부터 하나씩 증가하는 수를 3번 더해라 (1 ~ 3 더하기) public class While2_1 { public static void main(String[] args) { int sum= 0; int i = 1; sum =sum + i; System.out.println("i=" + i + " sum=" + sum);//i= 1, sum=1 i++; sum =sum + i; System.out.println("i=" + i + " sum=" + sum);//i=2, sum=3 i++; sum =sum + i; System.out.println("i=" + i + " sum=" + sum);//i=3, sum=5 } } 10부터 하나씩 증가하는 수를 3번 더해라 (10 ~12더하기) pu..
public static void main(String[] args) { long maxIntValue = 2147483647; //int 의 최고값 - long에 담을 수 있음 long maxIntOver = 2147483648L; //int 의 최고값 +1 = int값에 초과됨 int intValue = 0; intValue = (int) maxIntValue; //형변환 System.out.println("maxIntValue casting = " + intValue); //2147483647 intValue = (int) maxIntOver; //형변환 //오버플로우 -2147483648 //int 범위 (-2,147,483,648 ~ 2,147,483,647)를 초과하니 int의 가장 작은 수가..
public class Scope2 { public static void main(String[] args) { int m = 10; //m 생존 시작 for (int i = 0; i 영역 벗어나서 불가 System.out.println("for 문 i= " + m); } } public class Scope3_2 { //temp를 if 문 안에서만 쓰는 경우 - > if문 밖으로 temp를 ..
if 와 else if if 문이 각각 따로 존재하는경우 - 모두 실행됨 (ex.중복할인) public class If5 { public static void main(String[] args) { int price = 10000; int age = 10; int discount = 0; if(price >= 10000){ discount = discount + 1000; System.out.println("10000원 이상 구매, 1000원 할인"); //10000원 이상 구매, 1000원 할인 } if(age = 10000) { discount = discount + 1000; System.out.println("10000원 이상 구매, 1000원 할인"); //10000원 이상 구매, 1000원 할..

public class Method2 { public static void main(String[] args){ printHeader();//1. 매서드 작동! System.out.println("프로그램이 동작합니다"); printFooter(); } public static void printHeader() { //매개변수 없어서 그냥 호출되고 System.out.println(" = 프로그램을 시작합니다 = ");//실행 후 종료 return;//main으로 리턴 } public static void printFooter() { System.out.println(" = 프로그램을 종료합니다 = "); } } 📢 메서드 호출이 끝나면 더이상 해당 메서드가 사용한 메모리를 낭비할 이유가 없다 매서드 정..