java -> scala