Mad Java
Mad Java
import java.io.*;
import java.util.*;
while(playGame == true){
playGame = menu(console);
}
while(input.hasNextLine()){
String text = input.next();
//System.out.print(text);
//processLine(console, f1, nameOut);
if(text.startsWith("<") && text.endsWith(">")){
//String x = input.next();
char a = text.charAt(1);
String anora = aOrAn(a);
text = text.replace('<', ' ');
text = text.replace('>', ' ');
text = text.replace('-', ' ');
System.out.println("Please type" + anora + text);
String in = console.next();
output.print(" " + in + " ");
}
else{
output.print(" " + text + " ");
}
}
}
System.out.println();
}
/*public static void processLine(Scanner console, File inName, String
outName)
throws FileNotFoundException{
Scanner madL = new Scanner(new File(inName.getPath()));
//int length = madL.next().length();
PrintStream output = new PrintStream(new File(outName));
String tx = madL.next();
System.out.println(tx);
}
else{
String y = madL.next();
output.print(" " + y + " ");
}
}*/