Guest User

Untitled

a guest
Jul 16th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public static void main(String[] args) {
  2. String a = "halloj2222a";
  3. String b = "hallh2222oc";
  4. HammingDistance hammingdistance = new HammingDistance();
  5.  
  6. try{
  7. System.out.print(hammingdistance.getDistance(a, b));
  8. } catch (IllegalArgumentException e){
  9. System.out.print(e);
  10. }
  11. }
Add Comment
Please, Sign In to add comment