Added java file Prac1. Modified gitignore file to ignore .DS_Store, .classpath, .project, and .settings