Olá galera. eu estou tentando embaralhar a ordem das palavras em um arquivo .txt, Porem eu nao sei como fazer isso, alguem me ajuda?
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
*
* @author erick
*/
import java.io.*;
public class PrimeiroCodigo
{
//
public static void main(String[] args) throws IOException
{
File arquivoOrigem = new File("/home/erick/Downloads/lista_desordenada.txt");
File arquivoDestino = new File("/home/erick/Downloads/lista_ordenada.txt");
FileReader Entrada = new FileReader(arquivoOrigem);
FileWriter Saida = new FileWriter(arquivoDestino);
int c;
while ((c = Entrada.read()) != -1)
Saida.write(c);
Entrada.close();
Saida.close();
}
}
