Answers for "find the duplicate number in java"

-1

Java find duplicate items

System.out.print("Duplicate Characters in above string are: ");
for (int i = 0; i < str.length(); i++) {
   for (int j = i + 1; j < str.length(); j++) {
      if (carray[i] == carray[j]) {
         System.out.print(carray[j] + " ");
         break;
      }
   }
}
Posted by: Guest on June-05-2021
-1

Java find duplicate items

System.out.print("Duplicate Characters in above string are: ");
for (int i = 0; i < str.length(); i++) {
   for (int j = i + 1; j < str.length(); j++) {
      if (carray[i] == carray[j]) {
         System.out.print(carray[j] + " ");
         break;
      }
   }
}
Posted by: Guest on June-05-2021

Code answers related to "find the duplicate number in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language