In Eclipse, while coding in Java and press Ctrl + Shift + O auto import all the Classes automatically. In NetBeans, this is done with
Use control+option+L to auto import the package and auto remove unused packages on Mac