Create hash.java

Created sample