Hi I have two different strings and I'm trying to iterate through each of the characters and find where there are differences. I have created the strings and gathered a list of characters but I'm stuck on the comparison method.. Any help would be appreciated. Thanks! Code:java String DNAinput = player.getDNAnucleotides(); String referance = player.getBasicGenome(); ArrayList<Character> DNAchars = new ArrayList<Character>(); ArrayList<Character> REFchars = new ArrayList<Character>(); for(char nucleotide : DNAinput.toCharArray()){ DNAchars.add(nucleotide); } for(char refNucleotide : referance.toCharArray()){ REFchars.add(refNucleotide); }
MoeMix Research before asking: http://stackoverflow.com/questions/2762093/java-compare-two-lists First hit on google search for "java compare 2 lists"