@@ -0,0 +1,704 @@
+import java.io.BufferedReader;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0Aimport java.util.ArrayList;%0A%0Apublic class CentroidInitialization%7B%0A%09public static ArrayList %3CString%3E centroidInitialization(String centroidDirFile)%7B%0A%09   ArrayList %3CString%3E centroidMatrix  = new ArrayList%3CString%3E();%0A%09   %0A%09   try%7B%0A%09%09   BufferedReader centroid_read = new BufferedReader(new FileReader(centroidDirFile));%0A%09%09   while(true)%7B%0A%09%09%09   String line = centroid_read.readLine();%0A%09%09%09   if (line == null)%7B%0A%09%09%09%09   break;%0A%09%09%09   %7D%0A%09%09%09   else centroidMatrix.add(line);%0A%09%09%09   %7D%0A%09%09   centroid_read.close();%0A%09   %7D%0A%09  %0A%09   catch(IOException e)%7B%0A%09%09   System.out.println(%22No such a file!%22);%0A%09   %7D%0A%09return centroidMatrix;%0A%09  %7D%0A%7D%0A

Create CentroidInitialization.java