
질문 출처 : 커리어리 사이트 조서희 / 주니어 자바 개발자를 위한 100가지 질문 1 | 커리어리 "주니어 자바 개발자를 위한 100가지 질문" 1편입니다. 주니어 자바 개발자를 위한 100가지 질문 (2)... careerly.co.kr 1️⃣ 기초 📌 JDK와 JRE의 차이점은 무엇입니까? 더보기 jdk : java development kit - java를 개발할 수 있는 도구 키트 => 자바를 개발하고 컴파일할 수 있도록해줌. JRE + 컴파일러 등이 들어감. jre : java runtime enviroment - java를 개발할 수 있도록 도와주는 환경을 설정하도록 해줌. , => 자바가 돌아갈 수 있는 환경을 만들어줌. JVM이 여기에 들어감. 📌 ==와 equals의 차이점은 무엇입니까..

만약 좌표를 담을 수 있는 Pair 객체가 있다고 가정해보자. class Pair { int x, y; Pair(int x, int y) { this.x = x; this.y = y; } 만약 HashMap에 같은 좌표값을 가진 Pair 객체를 여러번 넣어 value를 갱신시키고 싶을 때 이런 방법을 쓸 것이다. import java.util.*; public class Test { public static void main(String[] args) { HashMap hm = new HashMap(); hm.put(new Pair(1, 3), 0); hm.put(new Pair(1, 3), 1); hm.put(new Pair(1, 3), 2); for (Pair p : hm.keySet()) { Sys..

⭐️ 개요 코테 풀다가 에러 발견 Exception in thread "main" java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextNode(HashMap.java:1469) at java.util.HashMap$KeyIterator.next(HashMap.java:1493) ⭐️ 해결 해시맵 keySet() 사용 중에 해당 객체의 값을 수정하다가 생긴 결과로, 새로운 newHashMap을 선언해주고, 그 값에 값을 넣어준 다음에 밑에로 갱신한다. 에러 상황 HashMap hm = new HashMap(); for (int i : hm.keySet()) { hm.put(i+10, 0); hm.put(i, 0); ..

InputStream, OutputStream 은 바이트 단위로 읽는 입출력 스트림 중 최상위 클래스이다. FileInputStream 은 같은 바이트 스트림으로, 1byte 씩 읽으므로 한글 (2Byte)을 읽지 못한다. 그래서 위 바이트 스트림을 한글을 읽을 수 있는 문자 스트림으로 바꿔줘야한다. 이러한 역할을 하는 스트림을 보조스트림 혹은 브릿지 스트림라고 한다. 또한 BufferedInputStream, BufferedReader 같이 앞에 Buffered 가 붙으면 데이터들이 버퍼에 저장됐다가 한번에 처리되므로 성능이 훨씬 좋아진다. 위의 스트림들은 단독으로 사용이 불가능한 보조 스트림들이다. 📝 FileInputStream VS BufferedInputStream VS FileReader VS..

원래는 미리 만들어놓은 MyLinkedList 를 이용하려고 했으나, 따로 구현도 해보고싶었다. 그래서 size() 나 peek()은 없음. ✏️ MyListNode.java public class MyListNode { private String data; public MyListNode next; public MyListNode() { data = null; next = null; } public MyListNode(String data) { this.data = data; this.next = null; } public MyListNode(String data, MyListNode next) { this.data = data; this.next = next; } public String getDat..

✏️ ArrayStack.java public class ArrayStack { int[] stack; int top; int array_size = 10; static final int ERROR_NUM = Integer.MAX_VALUE; ArrayStack() { top = 0; stack = new int[array_size]; } ArrayStack(int size) { top = 0; stack = new int[size]; array_size = size; } public void push(int data) { if (isFull()) { return; } stack[top++] = data; } public int pop() { if (isEmpty()) return ERROR_NUM; r..

✏️ Node 자료형 구현 : MyListNode public class MyListNode { private String data; public MyListNode next; public MyListNode() { data = null; next = null; } public MyListNode(String data) { this.data = data; this.next = null; } public MyListNode(String data, MyListNode next) { this.data = data; this.next = next; } public String getData() { return data; } } ✏️ MyLinkedList 구현 public class MyLinkedList { ..

1. 일반 int 형 배열 정렬 하기 int[] arr = Arrays.stream(br.readLine().split(" ")).mapToInt(Integer::parseInt).toArray(); System.out.println(Arrays.toString(arr)); System.out.println(Arrays.stream(arr).boxed().distinct().sorted().collect(Collectors.toList())); System.out.println(Arrays.stream(arr).boxed().distinct().sorted(Collections.reverseOrder()).collect(Collectors.toList())); boxed() -> 기본 자료형이므로 박싱 ..
- Total
- Today
- Yesterday
- 자료구조
- 백엔드
- 자료구조 #스택 #큐 #덱 #선형자료구조
- 채팅기능개발
- 그룹스터디워크샵
- 백엔드부트캠프
- 야놀자
- 패스트캠퍼스강의
- 부트캠프
- Java
- 백준
- 국비지원캠프
- #국비지원취업
- 데이터베이스
- 스터디후기
- 커리어멘토링
- 국비지원
- 패스트캠퍼스
- qjzl
- 그룹스터디
- springboot
- 프로젝트후기
- 국비지원취업
- 과정중간회고
- TiL
- 야놀자X패스트캠퍼스부트캠프
- be
- 백엔드개발자
- 카카오API
- boj
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |