How did China end their war in World War 2?

China and the United States we're both at war with Japan. Most likely their war ended when Japan surrendered after the Atomic Bombings.