java pattern match experimentation