In Eclipse, while coding in Java and press Ctrl + Shift + O auto import all the Classes automatically. In NetBeans, this is done with
Can't import all at once but can use following combination:
ALT + Enter --> Show intention actions and quick-fixes.
ALT
Enter
F2 --> Next highlighted error.
F2