Various Java experiments and some utility classes