Mercurial > hg > Members > tatsuki > TreeMap
comparison src/main/java/jp/ac/u_ryukyu/ie/cr/tatsuki/test/Util.java @ 5:6928ef8ba6f0
implement delete
author | tatsuki |
---|---|
date | Mon, 06 Apr 2015 00:09:38 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4:3de906fb90d1 | 5:6928ef8ba6f0 |
---|---|
1 package jp.ac.u_ryukyu.ie.cr.tatsuki.test; | |
2 | |
3 import java.util.TreeMap; | |
4 | |
5 /** | |
6 * Created by e115731 on 15/04/03. | |
7 */ | |
8 public class Util { | |
9 public static void main(String args[]) { | |
10 TreeMap<Integer,Integer> map = new TreeMap<Integer,Integer>(); | |
11 map.put(6, 6); | |
12 map.put(5, 5); | |
13 map.put(4, 4); | |
14 map.put(3, 3); | |
15 map.put(2, 2); | |
16 map.put(1, 1); | |
17 map.get(1); | |
18 map.remove(6); | |
19 map.get(1); | |
20 System.out.println("test"); | |
21 } | |
22 } |