I have a LinkedHashMap
(because the order of entry is important).
I want to be able to iterate over it's entries (key, value pairs) like an array
from end to start so the foreach methods doesn't fit here
something like :
for (int i = DestIndexStartPair.entrySet().size() , i> 0 ; i--) {
entry = DestIndexStartPair.entrySet()[i];
String Endsection = output.substring(entry.value());
System.out.println(Endsection );
}