Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 13
at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
at java.util.TimSort.sort(TimSort.java:220)
at java.util.Arrays.sort(Arrays.java:1512)
at java.util.ArrayList.sort(ArrayList.java:1454)
at com.example.rabbitmq.algorithm.Timsort.collection(Timsort.java:37)
at com.example.rabbitmq.algorithm.Timsort.main(Timsort.java:21)
alt加鼠标,会原地出发处理,如果是赋值语句,则不可逆,需要重新debug 例如 --i
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 13 at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355) at java.util.TimSort.sort(TimSort.java:220) at java.util.Arrays.sort(Arrays.java:1512) at java.util.ArrayList.sort(ArrayList.java:1454) at com.example.rabbitmq.algorithm.Timsort.collection(Timsort.java:37) at com.example.rabbitmq.algorithm.Timsort.main(Timsort.java:21)