Java Playground - String matches XY pattern with hash: Online Interpreter, Compiler & Editor | Sololearn