I start in java, I try to compare two lines in java char to char and find out how many different characters they have in the following code, but this does not work,
min is the min between the 2 strings for(int i=0; i<min-1; i++){ s1 = w1.substring(j,j++); s2 = w2.substring(j,j++); if (! s1.equalsIgnoreCase(s2) ){ counter++; } }`
Any tips?
java string char compareto
mike
source share