lib/java: use Java's `toString` to implement Nit's `to_s`

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>