Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- String a = "halloj2222a";
- String b = "hallh2222oc";
- HammingDistance hammingdistance = new HammingDistance();
- try{
- System.out.print(hammingdistance.getDistance(a, b));
- } catch (IllegalArgumentException e){
- System.out.print(e);
- }
- }
Add Comment
Please, Sign In to add comment