Add enum to java