Sorting multiple ArrayList synchronously

I have multiple parallel ArrayList, I am sorting one of them (i.e. indexes).

ArrayList<Integer> indexes = {2,3,1};
ArrayList<String> names = {"two","three","one"}; 
ArrayList<String> upper = {"TWO","THREE","ONE"};

I want to synchronise the sorting of the ArrayList 'indexes' with the others ArrayList. I am wondering in the Collections.sort(list) would give me a clue?



Comments

Popular posts from this blog

Today Walkin 14th-Sept

Network Error and Timeout on Authorize.net JS

Spring Elasticsearch Operations