초기 코드 : 너무 지저분하다. public class DashBoard { Map partition = new HashMap(); List partitionRates = new ArrayList(); public void dashBoard() throws IOException { GitHub gitHub = new GitHubBuilder().withOAuthToken(토큰 아이디).build(); GHRepository repository = gitHub.getRepository("whiteship/live-study"); for(int i = 1;i
링크드 리스트는 마치 서로 연결되었다는 느낌을 주는 자료구조입니다. 링크드 리스트는 다음과 같이 그릴 수 있습니다. 특이하게 값뿐만 아니라 다음이 어떤 값인지 알고 있습니다. 단순히 나열하는 ArrayList와 비슷하면서 다른 느낌을 줍니다. 위 그림은 링크드 리스트에 node가 한개일때를 보여줍니다. 그렇다면 3~4개로 늘어나게 되면 어떻게 될까요? 이런식으로 그릴 수 있습니다. 생성 하얀선을 통해 다음값의 값을 알아내는 느낌입니다. 이제 구현해 봅시다. 처음에는 노드는 한개라고 생각해봅시다. public class LinkedList { private Node head; private Node tail; private int size; private class Node { int value; Node..