public class designPrimer { public designPrimer() {} // a method to get the forward primer from upstrand public String getForward (String s, int p, char ch) { int p1 = s.length(); if (p >= p1) return "Wrong"; String s1 = s.substring(0, p); s1 += java.lang.String.valueOf(ch); s1 += s.substring(p+1); return s1; } // a method to get the reverse primer frow downstrand public String getReverse (String s, int p, char ch) { //first insert the mismatch (into the up strand version) String s1 = getForward (s, p, ch); int len = s1.length(); //then reverse the order int i = 0; String s2 = ""; for (i=0; i 5'-3' s2 += java.lang.String.valueOf(s1.charAt(len-1-i)); //get the primer int j = 0; String s3 = ""; for (j=0; j