Skip to Content
자바로 배우는 핵심 자료구조와 알고리즘: 기술 면접에 필요한 실용주의 자료구조와 알고리즘
book

자바로 배우는 핵심 자료구조와 알고리즘: 기술 면접에 필요한 실용주의 자료구조와 알고리즘

by 유동환, 앨런 B. 다우니
June 2018
Beginner to intermediate
184 pages
3h 30m
Korean
Hanbit Media, Inc.
Content preview from 자바로 배우는 핵심 자료구조와 알고리즘: 기술 면접에 필요한 실용주의 자료구조와 알고리즘
28
자바로 배우는 핵심 자료구조와 알고리즘
2.3
실습
2
이번 실습에서는 자바 배열을 사용하여 요소를 저장하는
List
인터페이스를 구현합니다. 이
책의 코드 저장소
(
8
예제 코드 참고 )
에는 예제 소스 파일이 있습니다.
MyArrayList
.
java
이 파일에
List
인터페이스를 일부 구현하였습니다.
4
개의 메서드가 불완전하니 이들을 채우면 됩니다.
MyArrayListTest
.
java
여러분의 작업을 테스트할 수 있는
JUnit
테스트 클래스가 들어 있는 파일입니다.
또한, 앤트 빌드 파일인
build.xml
파일도 있습니다.
code
디렉터리에서
ant MyArrayList
명령을 실행하여 몇 개의 테스트를 포함한
MyArrayList
클래스를 실행할 수 있습니다. 또는
ant MyArrayListTest
명령을 실행하여
JUnit
테스트를 실행할 수도 있습니다.
테스트를 실행하면 일부는 실패하게 됩니다. 소스 코드를 살펴보면 채워 넣어야 할 메서드를
나타내는
4
개의
TODO
주석이 있습니다. 코드를 수정하려면 이
TODO
주석에 내용을 채워 넣습
니다.
빠진 메서드를 채우기 전에 일부 코드를 살펴보겠습니다. 다음은 클래스 정의와 인스턴스 변
수, 생성자입니다
(파일명:
MyArrayList.java
)
.
public class ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴

자바 마이크로서비스를 활용한 SRE : 기업에서 신뢰할 수 있는 마이크로서비스를 위한 패턴

조너선 슈나이더

Publisher Resources

ISBN: 9791162240847