순수한 공상과학연구소

Development/Java (16)

  1. 2021.11.04 [Java] Set, HashSet 사용법 데이터 삽입, 삭제, 출력

    출처: https://tosuccess.tistory.com/145 [자바/java] Set, HashSet 사용법 데이터 삽입, 삭제, 출력 Set이란? 자바 컬렉션에 HashSet은 Set 인터페이스의 구현 클래스다. Set은 한국말로는 "집합"이고, 따로 저장 순서를 유지하지는 않는다. 또한 중복 값을 허용하지 않는다는 특징을 갖고 있다. *순서 tosuccess.tistory.com Set이란? 자바 컬렉션에 HashSet은 Set 인터페이스의 구현 클래스다. Set은 한국말로는 "집합"이고, 따로 저장 순서를 유지하지는 않는다. 또한 중복 값을 허용하지 않는다는 특징을 갖고 있다. *순서를 유지하고 싶으면 LinkedHashSet 클래스를 사용하면 된다. 1. 객체 선언 - new HashSet..

  2. 2021.08.10 [Java] 조건 삼항 연산자 기본 (원리) ?:

    출처: https://catch-me-java.tistory.com/28 [Java-19] 삼항 연산자 기본 (원리) ?: Java The conditional operator 조건부 삼항 연산자 ? : 조건 연산자 ‘?:’는 C언어에서 상속 받은 뭔가 애매한 3항 연산자 이다. 이 3항 연산자는 어떠한 연산식 안에서 이 삼항 연산자를 이용해 조건을 catch-me-java.tistory.com

  3. 2021.08.10 [Java] Java 스트림 Stream 총정리

    출처: https://futurecreator.github.io/2018/08/26/java-8-streams/ Java 스트림 Stream (1) 총정리 이번 포스트에서는 Java 8의 스트림(Stream)을 살펴봅니다. 총 두 개의 포스트로, 기본적인 내용을 총정리하는 이번 포스트와 좀 더 고급 내용을 다루는 다음 포스트로 나뉘어져 있습니다. Java 스트 futurecreator.github.io 출처: https://futurecreator.github.io/2018/08/26/java-8-streams-advanced/ Java 스트림 Stream (2) 고급 이전 포스트에 이어서 Java 8의 스트림(Stream)을 살펴봅니다. 자바 8 스트림은 총 두 개의 포스트로, 기본적인 내용을 총정리하..

  4. 2021.08.10 [Java] Java 스트림 Stream 총정리

    출처: https://futurecreator.github.io/2018/08/26/java-8-streams/ Java 스트림 Stream (1) 총정리 이번 포스트에서는 Java 8의 스트림(Stream)을 살펴봅니다. 총 두 개의 포스트로, 기본적인 내용을 총정리하는 이번 포스트와 좀 더 고급 내용을 다루는 다음 포스트로 나뉘어져 있습니다. Java 스트 futurecreator.github.io 출처: https://futurecreator.github.io/2018/08/26/java-8-streams-advanced/ Java 스트림 Stream (2) 고급 이전 포스트에 이어서 Java 8의 스트림(Stream)을 살펴봅니다. 자바 8 스트림은 총 두 개의 포스트로, 기본적인 내용을 총정리하..

  5. 2021.08.10 [Java] Hash - MD5와 SHA256해시(Hash)와 암호화(Encryption)의 차이

    출처: https://jongmin92.github.io/2019/12/18/Java/hash/ Hash - MD5와 SHA256 해시(Hash)와 암호화(Encryption)의 차이먼저 혼동하기 쉬운 해시와 암호화의 차이에 대해서 알아보자. jongmin92.github.io

  6. 2021.08.10 [Java] MD5 Hashing in Java

    출처: https://www.baeldung.com/java-md5 1. Overview MD5 is a widely used cryptographic hash function, which produces a hash of 128 bit. In this article, we will see different approaches to create MD5 hashes using various Java libraries. 2. MD5 Using MessageDigest Class There is a hashing functionality in java.security.MessageDigest class. The idea is to first instantiate MessageDigest with the kin..

  7. 2021.08.05 [Java] Interface와 Abstract class의 차이점 및 사용방법 이해하기

    출처: https://postitforhooney.tistory.com/entry/Java-Interface%EC%99%80-Abstract-class%EC%9D%98-%EC%B0%A8%EC%9D%B4%EC%99%80-%EA%B0%81%EA%B0%81%EC%9D%98-%ED%8A%B9%EC%A7%95-%EC%9D%B4%ED%95%B4%ED%95%98%EA%B8%B0 [Java] Interface와 Abstract class의 차이점 및 사용방법 이해하기. # [Java] Interface와 Abstract class의 차이점 및 사용방법 이해하기. - 최근 수정일 : 2017.04.18 - IDE : Spring Tool Suite - OS : OSX Sierra (10.12.3) - Lang : JAV..

  8. 2021.08.04 [Java] 오류: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. 해결법 + -- warning-mode all 경고 없애기

    자바 빌드 오류 Message: * What went wrong: Gradle could not start your build. > Could not create service of type FileHasher using BuildSessionServices.createFileHasher(). > Cannot lock file hash cache (/home/ec2-user/app/step1/ToyStoryGit/.gradle/6.9/fileHashes) as it has already been locked by this process. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option ..

  9. 2021.08.03 [Java] extends, implements 차이

    출처: https://velog.io/@hkoo9329/%EC%9E%90%EB%B0%94-extends-implements-%EC%B0%A8%EC%9D%B4 자바 extends, implements 차이 상속이란 (Inheritance) 상속을 말하기 전에 먼저 OOP가 무엇인지 알면 좋을거 같다.OOP(Object-Oriented Programming, 객체 지향 프로그래밍) 이란? OOP의 특징으로 1. 상속과 인터페이스 (계층성) 2. 다형성, 사 velog.io

1 2