Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. public int solution(String s1, String s2) {
  2. int sum = 0;
  3. for (int i=0; i<s1.length(); i++){
  4. if (s1.charAt(i) != s2.charAt(i))
  5. sum++;
  6. }
  7. return sum;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement