Java Question. Autocomplete and other things. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Java Question. Autocomplete and other things.

I'm currently learning Java so i'm a beginner. I tried to make a program with the JOptionPane Output. I know that i need to import the javax.swing but i've seen that when you write JOptionPane it automatically get's imported, unluckily that does not happen for me. Does somebody knows why? And also , is there a combination of keys for seeing the autocomplete window?

1st Apr 2020, 11:27 PM
Oscar Ramírez Díaz
Oscar Ramírez Díaz - avatar
2 Answers
0
Which IDE do you use? IDE's usually provide the auto-import feature. It recognizes classes/methods you haven't imported yet and suggests you missing import statements. Ctrl + Shift + O imports packages automatically in IntelliJ. There have to be equivalent key combinations in other IDE's. Search for them in Google. This feature might be disabled in your IDE.
2nd Apr 2020, 12:12 AM
Steppenwolf
Steppenwolf - avatar
0
Im using NetBeans
2nd Apr 2020, 12:44 AM
Oscar Ramírez Díaz
Oscar Ramírez Díaz - avatar