Add Java and NetBeans entries to .gitignore file.