Updated .gitignore and java/.gitignore
Java: Writing to file
Java: File class