In the comments, please rate it out of 10. Thanks you!
I don't know Java, but this looks really cool. I don't understand how you didn't print it multiple times. 10/10. However, while this sounds absurd, I feel like it would be awesome to make a 3d version where all sides of a square are a tik-tak-toe board, and you only need 1 to win.