private void CountMatching(Object[] array, Object[] array1) { int count = 0; double total; for (int a = 0; a < array.length; a++) { for (int b = 0; b < array1.length; b++) { if (array[a] == array1[b]) { count++; } } } System.out.println(count); total=(count/9)*(30.0/100); System.out.println(total); }
Quote:total=(count/9)*(30.0/100);
(count/9)
total=(count/9.0)*(30.0/100);
double count = 0.0d;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)