Java backend: updated outputs