What countries did japan have conflicts with before World War 1?

Japan had conflicts with China and Russia before World War one.