Added file
Added file
now in java
Corrected incompatible types error and others