String[] { "CD", "BC", "EF", "DE", "AB"};
//using list
long startTime = System.nanoTime...for(int i=0;i<1000000;i++)
useList(arr, "A");
long endTime = System.nanoTime...for (int i = 0; i < 1000000; i++) {
useSet(arr, "A");
}
endTime = System.nanoTime...for (int i = 0; i < 1000000; i++) {
loop(arr, "A");
}
endTime = System.nanoTime...String[] { "CD", "BC", "EF", "DE", "AB"};
//using list
long startTime = System.nanoTime