@@ -0,0 +1,733 @@
+package com.predictionmarketing.convert;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.BufferedWriter;%0Aimport java.io.FileReader;%0Aimport java.io.FileWriter;%0Aimport java.io.IOException;%0A%0Apublic class MovieDataConvert %7B%0A%0A%09/**%0A%09 * cat u.data %7C cut -f1,2,3 %7C tr %22%5C%5Ct%22 %22,%22%0A%09 * @throws IOException %0A%09 * %0A%09 */%0A%09%0A%09public static void main(String%5B%5D args) throws IOException %7B%0A%09%09%0A%09%09BufferedReader br = new BufferedReader(new FileReader(%22data/u.data%22));%0A%09%09BufferedWriter bw = new BufferedWriter(new FileWriter(%22data/movies.csv%22));%0A%09%09%0A%09%09String line;%0A%09%09while((line = br.readLine()) != null) %7B%0A%09%09%09String%5B%5D values = line.split(%22%5C%5Ct%22, -1);%0A%09%09%09bw.write(values%5B0%5D + %22,%22 + values%5B1%5D + %22,%22 + values%5B2%5D + %22%5Cn%22);%0A%09%09%7D%0A%09%09%0A%09%09br.close();%0A%09%09bw.close();%0A%0A%09%7D%0A%0A%7D%0A

Create MovieDataConvert.java