String [] s={" zhang ", "li si", "detective"}; 20 s int [] c={} The 20 year-old on behalf of zhang SAN, li si 18, fifty and 19 Now will they age smallest to and in accordance with the name: the age that the format of the output This topic will be ordered age after the data element subscript changed, and the name of the original is not corresponding, zhang SAN's age is 20, before is now sorted zhang SAN is the age of 18, how to solve this problem, will sorted name is corresponding to the same
CodePudding user response:
First deposit corresponding map again
CodePudding user response:
Is there any other way, without a map, such as the use cycle and so on