Map <Integer,Integer> hashMapmap=new TreeMap<>();
hashMapmap.put(1,4);
hashMapmap.put(2,2);
hashMapmap.put(3,5);
[543, 722, 901, 542, 721, 275, 454, 633, 812, 991]
下面的array是搭配v值跑出來的x座標(存在另一個arraylist)
如果要把index0-3 4-5 6-10各自拿出來跑迴圈
用remove的方式 要如何寫呢?
用了for for-loop 都一直跑IndexOutOfBoundsException
感恩...