Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 481 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 481 Bytes

hamming

To test alternative sequences, the strings in the main method may be instantiated differently. Otherwise, simply running the program will display example results.

distance(String s1, String s2){ if the strings aren't of equal length: print error message return loop through the length of either string (they're equal) if the character at any given index deosn't match: increment count variable print statement including count