import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
@SuppressWarnings("unchecked")public class Game{
int num=0;
String contents;
ArrayList Dlist;
public void loadIn(){
try {
FileReader fileReader = new FileReader("dictionary.txt");
BufferedReader bufferedReader = new BufferedReader(fileReader);
contents = bufferedReader.readLine();
while (contents != null) {
Dlist.add(contents);
contents = bufferedReader.readLine();
}
bufferedReader.close();
fileReader.close();
}
catch (IOException e) {
System.out.println("Errors occured");
System.exit(1);
}
}
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
@SuppressWarnings("unchecked")public class Game{
int num=0;
String contents;
ArrayList Dlist;
public void loadIn(){
try {
FileReader fileReader = new FileReader("dictionary.txt");
BufferedReader bufferedReader = new BufferedReader(fileReader);
contents = bufferedReader.readLine();
while (contents != null) {
Dlist.add(contents);
contents = bufferedReader.readLine();
}
bufferedReader.close();
fileReader.close();
}
catch (IOException e) {
System.out.println("Errors occured");
System.exit(1);
}
}