일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 자동차용품
- 스킨케어
- 아이 메이크업
- 파닥이
- 쿠팡리뷰
- 건강식품
- 쿠팡 리뷰
- 신발
- 2020 설날
- 스포츠/레저
- 황사마스크
- 여성패션
- 쿠팡 리뷰 분석
- 바지/레깅스
- 선물관
- 패션마스크
- 마스크/방한대
- 쿠팡리뷰분석
- 가방/잡화
- 생활용품
- 쿠팡 리뷰 모아보기
- 메이크업
- 식품
- 바지
- 장갑/시즌잡화
- 싱글라이프
- 뷰티
- 겨울용품관
- 건강/의료용품
- 쿠팡 브랜드
- Today
- Total
목록IT/Java (23)
파닥이
import java.sql.Statement;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLException;public class Program { public static void main(String[] args) throws SQLException { /*************************************************************************************/ // Class.forName("oracle.jdbc.driver.OracleDriver"); //0.드라이버로드하기 (저절로 됨.) String url = ..
public class Test { public static void main(String[] args) { A ab = new B(); ab.f2(); System.out.println("----------------"); B b = new B(); b.f7(); }}class A { void f1() { System.out.println("A클래스의 F1입니다."); } void f2() { System.out.println("A클래스의 F2입니다."); f3(); } void f3() { System.out.println("A클래스의 F3입니다."); } void f4() { System.out.println("A클래스의 F4입니다."); f5(); } void f5() { System.out.pr..
public class 개구리프로그램 { public static void main(String[] args) { 개구리 a = new 독개구리(); // 육체 = 영혼 a.점프(); System.out.println("-------------------"); a.파리먹기(); System.out.println("-------------------"); //a.독뿜기(); //에러 }}class 개구리 { void 점프() { System.out.println("점프를 한다."); } void 파리먹기() { System.out.println("입을 벌려 먹는다."); } }class 독개구리 extends 개구리{ @Override void 파리먹기() { System.out.println("혓바닥으로..
자바 이클립스 디버깅 : F11 라인넘버부분을 더블클릭하면 파란색원이 생기는데 디버깅을 하면 그부분까지만 실행이됨. 디버깅 과정에서 값을 설정하여 비교할수 있음.
public class Test1 { public static void main(String[] args) { int capacity = 10; // 공간을 동적으로 늘리기 위한 변수 (기본값) int amount = 10; // 공간을 동적으로 늘리기 위한 변수 (카운터) int[] array = new int[capacity]; int index = 0; while (true) { //while반복문 내 추가작업// if (capacity
import java.util.Scanner;public class Test { public static void main(String[] args) { // TODO Auto-generated method stub String[] str = { " ", "", "1", "2", "3" }; for (String s : str) System.out.println(s); Scanner sc = new Scanner(System.in); String such = ""; while (true) { System.out.print("입력 : "); such = sc.nextLine(); for (int i = 0; i = 0) { System.out.printf("=>str[%d] : [%s] 있음\n",i,st..
□□□□□□□□□ ↑ ↑ A B 리틀엔디안 B에서 부터 읽음. 빅에디안 A에서 부터 읽음 흔히 싼 저가의 보급형 pc들은 리틀엔디안 방식을 사용함. (우리pc) 리틀엔디안방식의 파일에 쓰고, 읽기 import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;public class headTest { public static void main(String[] args) throws IOException { int num = 255; FileOutputStream fos = new FileOutputStream("res/bin.txt"); by..
package study;//반드시 하나의 인스턴스만 생성해야 하는 클래스class SimpleNumber { int num = 0; private SimpleNumber() {} public void addNum(int n) { num+=n; } public void showNum() { System.out.println(num);} private static SimpleNumber snInst = null; public static SimpleNumber getInstance() { if(snInst == null) snInst = new SimpleNumber(); return snInst; } }public class OnlyOneInstance { public static void main(St..
정렬 생각 과정 1. 서로다른 두개의 변수를 바꾸기. 2. 배열에서 인접한 변수 두개의 값을 비교해서 크면 오른쪽에 옴기기 3. 이걸 배열크기만큼 해주면 정렬이 됨. package study;import java.util.Random;public class LottoSchool { public static void main(String[] args) { int[] lotto = new int[6]; Random rand = new Random(); // 로또 번호 중복없이 생성하기 for (int i = 0; i