Nie som si veľmi istý, ale toto možno pomôže:
Kód:
public void Save(String path) {
File subor = null;
if (path.length() == 0) path = "saves/save.txt";
subor = new File(path);
if (!(subor.canWrite())) System.out.println("Nemate povolenie k zapisu!"); else {
if (subor.exists()) System.out.println("Subor uz existuje!"); else {
try {
subor.createNewFile();
PrintWriter vystup = new PrintWriter(new FileWriter(subor));
for (int c=0;c<prikazyH.size()-2;c++) {
String out = prikazyH.get(c);
vystup.println(out);
c++;
}
vystup.close();
subor.setReadOnly();
System.out.println("Hra bola uložená !!");
clear();
} catch(IOException e) {
System.err.print("Chyba !!");
}
}
_________________
A. S. Tanenbaum píše:
The terms LF, MF, and HF refer to low, medium, and high frequency, respectively. Clearly, when the names were assigned, nobody expected to go above 10 MHz, so the higher bands were later named the Very, Ultra, Super, Extremely, and Tremendously High Frequency bands. Beyond that there are no names, but Incredibly, Astonishingly, and Prodigiously high frequency (IHF, AHF, and PHF) would sound nice.