How to print out the two dimensional array in the same Numbers,
CodePudding user response:
The great god out walk??
CodePudding user response:
The great god out walk??
CodePudding user response:
1, 2 layer for loop traverse judgment 2, merge the two arrays and then into the set
Set the Set=new HashSet (); For (int element: array) { //set to add is not repeating elements if (! Set. The add (element)) { System. Out.println (" get repeating element ") } }