public static void main( String[] args ) { String line[] = new String[10]; String[] pairs = new String[2]; Pair pairObj[] = new Pair[10]; int lineCount=0; //make pairs empty for(int i=1; i myMap = new TreeMap(); for(int i=1; i<=lineCount; i++) { myMap.put(pairObj[i],gcd(Integer.parseInt(pairs[0]),Integer.parseInt(pairs[1]))); } } } //GCDTable