corret some java syntax problem