일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
파닥이
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
Stream 들은 모두 파일 마지막에 close 해주삼. (FileInputStream , FileOutputStream , printStream) System.out.println은 프로그램이 종료되면서 저절로 해주기 때문에 해줄필요없음.
/* * 비트연산자 활용하는 방법 (비트 단위마다 특정아이템을 가지고 있냐 없냐 유무확인) */public class BitCalc { public static void main(String[] args) { int[] cipher = new int[8]; cipher[0] = 0x00000001; for (int i = 0; i 0 num&8>0 System.out.println("가지고있음"); } else { System.out.println("없음"); } } }} 없음없음 가지고있음 가지고있음 가지고있음 없음 가지고있음 가지고있음
public class BitTest { public static void main(String[] args) { short pos = (7>>8); int y = 0x00ff & pos; // 255 & pos System.out.printf("x : %d ",x); System.out.printf("y : %d",y); }} x : 7 y : 5
public class MainTest { public static void main(String[] args) { String str1 = "hello"; String str2 = new String(str1); //인스턴스를 새로 생성해서 복사함. String str3 = "hello"; if(str1 == str2) { // ==연산자는 참조변수의 참조 값을 비교한다. System.out.println("같다"); } else System.out.println("다르다"); if(str1 == str3) { System.out.println("같다"); } else System.out.println("다르다"); if(str1.equals(str2)) { // equals는 인스턴스에 저장되어 있는..