Java Reference
In-Depth Information
Code completion also works for variable types and method return values, for
example, if we want to declare a variable of type java.util.List , we simply need
to type the first few characters of the type, then hit Ctrl + Space NetBeans will try to
complete with variable types in any of the packages we have imported in our class.
In order to make NetBeans attempt to complete with any type in the classpath, we
need to hit Ctrl + Space again.
As we can see in the preceding screenshot, NetBeans displays JavaDoc for the class
we selected from the code completion options. Another time-saving feature is that
the class we selected from the options is automatically imported into our code.
Once we have the type of our variable, we can hit Ctrl + Space right after the variable
and NetBeans will suggest variable names.
 
Search WWH ::




Custom Search