I am following a tutorial on java since I am now learning java (duh... lol) and he mentions a GUI so I followed along, except when I attempted to imoort the package it had a squiggly red line saying that the JOptionPane could not be accessed and when i ran it it syas "java.lang.Error: Unresolved compilation problem: JOptionPane cannot be resolved
import javax.swing.JOptionPane;
public class Main {
public static void main(String[] args) {
String username = JOptionPane.showInputDialog("ENTER YOUR NAME: ");
}
}
that is the code I used INDENTS ARE NOT ACCURATE ON THIS CODE BUT IT IS PROPERLY INDENTED IN MY CODE.