fixed Java syntax