Changed to use try-with-resource, java convetions fixes
Java conventions fixes
Java conventions, removed bad imports
Fixed imports, java conventions, moved to try-with-resource.
Java conventions, imports fix.
Java conventions
Removed pointless casts, java conventions, fixed imports
Java conventions, imports, serial ID
Java conventions, imports, moved to try-with-resource
Java conventions, imports, moved to try-with-resource