import static javax.swing.JOptionPane.*;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String input = showInputDialog("Podaj 3 liczby");
Scanner scan = new Scanner(input);
String msg = "";
msg += NumTeller.say(scan.nextInt()) + '\n';
msg += NumTeller.say(scan.nextInt()) + '\n';
msg += NumTeller.say(scan.nextInt()) + '\n';
System.out.println(msg);
}
}
Tak wyglądał kod kiedy wyświetlał się komunikat "Scanner cannot be resolved to a type" (obok Scanner scan), po wstawieniu wyjątku wszystko zaczęło działać ale wcześniej Eclipse nie podał żadnych rozwiązań - sam komunikat.