Update java recursive