package dna; public class MotifSimple extends Motif { public static void main(String args[]){ String s1="ATN"; String s2="ATGCCCATCTGATG"; if(args.length>0){s1=args[0];} if(args.length>1){s2=args[1];} MotifSimple m=new MotifSimple(s1, 0); String source=s2; int x=m.countExtended(source); System.out.println(x+" matches."); } public MotifSimple(String s, int cen){ super(s, s.length(), cen); commonLetters=s; lettersUpper=commonLetters.toUpperCase().getBytes(); lettersLower=commonLetters.toLowerCase().getBytes(); boolean x=false; for(int i=0; isource.length){return false;} for(int i=0; isource.length){return false;} for(int i=0; i