Skip to content

Instantly share code, notes, and snippets.

View simhanature's full-sized avatar

Narasimharaj C simhanature

  • Torrance, CA
  • 20:31 (UTC -07:00)
View GitHub Profile
@simhanature
simhanature / SortUsingDifferentArray
Created December 9, 2014 07:06
Sort an array based on another array
import java.util.Arrays;
import java.util.Comparator;
public class TestSort {
private static void printTable(String caption, Integer[] orderArray,
Integer[] arrayToBeSorted, Integer[] sortOrder){
System.out.println(caption+
"\nNo Num Color"+
"\n----------------");