Http Servlet Request(용달차) -> getParameter( Back-end )
EJB => Servlet => Strutch(Aphache), Spring 1.0
<form> 태그 배달꾼
- action : "서버 주소지" // action = "#"
- method // method = "#"
정적인 웹
동적인 웹 - 반응형
메소드
생성자
객체
대부분의 db를 지원하는 db 관리 도구
DBeaver Community | Free Universal Database Tool
DBeaver Universal Database Tool DBeaver Community is a free cross-platform database tool for developers, database administrators, analysts, and everyone working with data. It supports all popular SQL databases like MySQL, MariaDB, PostgreSQL, SQLite, Apach
dbeaver.io
package kr.co.hanuledu.controlex;
import java.util.Scanner;
public class doWhileEx0 {
public static void main(String[] args) {
/*
* do ~ while : 선처리 -> 후처리
*
* do {
* 조건시 참일때 실행되는 문장;
* 증감식;
* } while( 조건식 );
*/
System.out.println("메시지를 입력하세요.");
System.out.println("프로그램을 종료하려면 q를 입력하세요.");
Scanner sc = new Scanner(System.in);
String inputString;
do {
System.out.print(">");
inputString = sc.nextLine();
System.out.println(inputString);
} while(!inputString.equals("q"));
System.out.println();
System.out.println("프로그램 종료");
}
}
package kr.co.hanuledu.controlex;
public class breakEx0 {
public static void main(String[] args) {
while (true) {
int num = (int)(Math.random() * 6) + 1;
System.out.println(num);
if(num == 6) {
break;
}
}
System.out.println("프로그램 종료");
}
}
package kr.co.hanuledu.controlex;
import java.util.Scanner;
public class breakOutterEx {
public static void main(String[] args) {
Outter: for (char upper = 'A'; upper < 'Z' ; upper++) {
for(char lower = 'a'; lower < 'z'; lower++) {
System.out.println(upper + '-' + lower);
if(lower == 'g') {
break Outter;
}
}
}
System.out.println("프로그램 실행 종료");
}
}
package kr.co.hanuledu.controlex;
public class ContinueEx0 {
public static void main(String[] args) {
for(int i = 0; i <= 10; i++) {
if( i % 2 != 0) {
continue;
}
System.out.println(i + " ");
}
}
}
package kr.co.hanuledu.controlex;
public class TestWhileEx0 {
public static void main(String[] args) {
// 1 ~ 10까지의 수중에서 짝수의 합을 구하시오.
// for, while
int sum = 0;
for(int i = 1; i <= 10; i++) {
if(i%2 == 0) {
sum += i;
}
}
System.out.println("for문의 짝수의 합은 " + sum);
int j = 1;
int sum2 = 0;
while(j <= 10) {
if(j%2 == 0) {
sum2 += j;
}
j++;
}
System.out.println("while문의 짝수의 합은 " + sum2);
}
}
package kr.co.hanuledu.controlex;
public class TestForIfex0 {
public static void main(String[] args) {
// 1 ~ 100 까지의 총합을(sum)을 구하시오.
// 단, 총합이 1024 이상이면 반복을 중지하고, 그때까지의 누적한 값을 출력하시오.
int i = 1;
int sum = 0;
while( i <= 100 ) {
sum += i;
if( sum >= 1024) {
break;
}
i++;
}
System.out.println("1에서 100까지의 총합은 " + sum + "입니다.");
System.out.println("반복한 횟수는 " + (i - 1) + "번 입니다.");
}
}'BackEnd > Backend 공부 정리' 카테고리의 다른 글
| sqldeveloper-7 (0) | 2024.08.13 |
|---|---|
| Java-7.2 (0) | 2024.08.13 |
| sqldeveloper-6 (0) | 2024.08.12 |
| Java-6.2 (0) | 2024.08.12 |
| Java-6.1 (0) | 2024.08.12 |