problem 11: scala + java