O código da aula está dando o seguinte erro :
Exception in thread "main" java.lang.Error: Unresolved compilation problem: FileInputStream cannot be resolved to a type
Já tentei pesquisar sobre o erro mas não achei uma solução, alguém consegue me ajudar?
Segue o código:
import java.io.*;
public class TesteLeitura {
public static void main(String[] args) throws IOException {
InputStream fis = new FileInputStream("lorem.txt");
Reader isr = new InputStreamReader(fis);
BufferedReader br = new BufferedReader(isr);
String linha = br.readLine();
while (linha != null) {
System.out.println(linha);
linha = br.readLine();
}
br.close();
}