scala 2 java