Correct format when printing the Rel in Java
demo program version 1