Hi i'm trying to get my program to allow the user to choose between plain text or html to show some results i have. I dont know much about java so i dont understand why none of my if statement works or why my catch also doesnt work.
if (generateHTML == true) {
online.println(output scores and stuff);
Online.println(output valid games));
Online.println(output total goals);
Online.println(output invalid games);
}
try {
Runtime.getRuntime().exec("cmd.exe /C start " + locationOfFile);
} catch {
System.err.println("Error: unable to open " + locationOfFile);
}
Aucun commentaire:
Enregistrer un commentaire