Salve, ho un dubbio in una riga di codice di questa classe:
import java.io.*;
public class Esempio4 {
public static void main(String args[]){
FileReader fin = null;
try {
fin = new FileReader("Prova.txt");
}
catch(FileNotFoundException e){
System.out.println("File non trovato");
System.exit(3);
}
try {
while(fin.ready()){
char ch = (char) fin.read();
/* cosa vuol dire sto char tra parentesi???*/
System.out.print(ch); // echo
}
System.out.println("");
}
catch (IOException e){
System.out.println("Errore di input");
System.exit(4);
}
}
cosa vuol dire sto char tra parentesi??? E' un errore delle dispense del mio professore o è così??
Vi ringrazio a tutti anticipatamente