View Single Post
Old 08-13-2012, 10:33 PM   PM User | #8
MoodySpark
New to the CF scene

 
Join Date: Aug 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
MoodySpark is an unknown quantity at this point
this is my full code so far just in case:

import java.util.*;
import java.util.Scanner;
import java.io.*;
import java.io.FileReader;
import java.io.BufferedReader;
import java.io.IOException;

public class Hangman
{


public static void main (String[] args) throws Exception {


FileReader fr = new FileReader(word.txt);

try {
BufferedReader br= new BufferedReader(new FileReader("words.txt"));
List<String> lines = new ArrayList<String>();
String line = br.readLine();
while(line !=null){
lines.add(line.replace(">", ""));
line = br.readLine();
}
Collections.shuffle(lines);
}


}
MoodySpark is offline   Reply With Quote