Mercurial > hg > Database > jungle-sharp
view src/test/csharp/jp.ac.u-ryukyu.ie.cr/data/treemap/TreeMapTest.cs @ 7:02b2ab7bffe6
fix
author | Kazuma |
---|---|
date | Tue, 27 Sep 2016 18:36:05 +0900 |
parents | a3af05a061b4 |
children |
line wrap: on
line source
using UnityEngine; using System.Collections; public class TreeMapTest : MonoBehaviour { private int ReturnNumber; // Update is called once per frame public void Start () { TreeMap<int, int> map = new TreeMap<int,int>(); Debug.Log (map); for (int count = 5; count > -10; count--) { map = map.put(count, count); map.checkDepth(); Debug.Log("------------------------------------------"); } // for (int count = 100; count > -10; count--) { // ReturnNumber = map.get(count); // if(ReturnNumber == null){ // checknull = false; // } // //this points null check. // if (checknull){ // Debug.Log(map.get()); // } for(int count = 5; count > -10; count--){ int op = map.get(count); if(op != null) { Debug.Log("op " + op); } } Debug.Log ("end"); } }