That's not quite right... yes, they were both reforming, but very differently. While Japan went through the Meiji reform in 1868 which turned it into a modern country, China was a lot more reluctant to change, and any reform it went through came up against strong reactionary opposition. It remained a backwards country throughout the 19th and early 20th centuries.
=================
Custom dissertation