Kata sort with java