摘要:
public class ClosestPair{ public static void main(String[] args) { float[][] a = new float[][]{{3, 3}, {1, 5}, {4, 6}, {2, 8}, {9, 9},{2, 1}, {7, 2}... 阅读全文
摘要:
import java.util.Scanner;public class SelectionSort { public static void sort(int[] a, int n){ if(na[j]) swap(a, i, j); } } } private static ... 阅读全文
摘要:
public class Copy { public static void copy(char[] s, char[] t){ int i=0; for(i=0; i<s.length; i++){ t[i]=s[i]; } t[i] = '\0'; } public s... 阅读全文