Code Canvas

  • 홈
  • 태그
  • 방명록

2025/04/03 2

java 중복 제거

Set LinkedHashSet: 중복제거 동시에 입력 순서 유지 가능Set setarr = new LinkedHashSet(arr);arr = new ArrayList(setarr); IteratorIterator it = arr.iterator();String prev = "";while(it.hasNext()) { String current = it.next(); if(current.equals(prev)) { it.remove(); } else { prev = current; }} (java 8이상) distinct()arr = arr.stream().distinct().collect(Collectors.toList());

카테고리 없음 2025.04.03

java HashMap Vs ConcurrentHashMap

java HashMap Vs ConcurrentHashMap  https://javaconceptoftheday.com/hashmap-vs-concurrenthashmap-in-java/ HashMap Vs ConcurrentHashMap In JavaDifferences between HashMap and ConcurrentHashMap in Java, HashMap Vs ConcurrentHashMap In Java, How ConcurrentHashMap differs from HashMap In Java...javaconceptoftheday.com HashMap과 ConcurrentHashMap은 둘 다 Java에서 사용되는 맵(Map) 인터페이스의 구현체입니다. 이들은 키-값(key-value..

카테고리 없음 2025.04.03
이전
1
다음
더보기
프로필사진

Code Canvas

codecanvasio 님의 블로그 입니다.

  • 분류 전체보기 (18)

Tag

smarttomcat플러그인, springboot설정, tomcat설정, intellij community, lombok플러그인, ide설정, intellij설정, svn설정, maven설정,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/04   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바