import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		String strand = "";
		System.out.println("Original strand Sequence:");
		for (int i = 0; i<20; i++){
			int baseNum = (int) (Math.random() * 4);
			String baseLet = "";
			switch(baseNum){
			case 0: baseLet = "A";
			break;
			case 1: baseLet = "T";
			break;
			case 2: baseLet = "C";
			break;
			case 3: baseLet = "G";
			}
			strand = strand.substring(0) + baseLet;
			System.out.print(strand.charAt(i));
		}
		
		System.out.println("");
		Scanner scan = new Scanner(System.in);
		System.out.println("");
		System.out.println("Choose Restriction Enzyme (Indicate Number):");
		System.out.println("1. EcoRI \n2. MscI \n3. PsiI");
		String input = scan.nextLine();
		System.out.println("Foreign Strand to Insert:");
		String insert = scan.nextLine();


		insert(input, insert, strand);
	}
	
	public static void insert(String input, String insert, String strand){
		
		
	}

	public String transcribe(String strand){
		return strand;
		
	}
	public String translate(String strand){
		return strand;
		
	}
	
}

@@ -525,19 +525,23 @@
 ));%0A%09%09%7D%0A
+//
 %09%09%0A
+//
 %09%09System
@@ -558,16 +558,18 @@
 ln(%22%22);%0A
+//
 %09%09Scanne
@@ -601,16 +601,18 @@
 em.in);%0A
+//
 %09%09System
@@ -625,24 +625,26 @@
 rintln(%22%22);%0A
+//
 %09%09System.out
@@ -701,16 +701,18 @@
 er):%22);%0A
+//
 %09%09System
@@ -753,24 +753,26 @@
 n3. PsiI%22);%0A
+//
 %09%09String inp
@@ -793,16 +793,18 @@
 Line();%0A
+//
 %09%09System
@@ -846,16 +846,18 @@
 ert:%22);%0A
+//
 %09%09String
@@ -883,19 +883,23 @@
 Line();%0A
+//
 %0A%0A%09
+//
 %09insert(
@@ -922,16 +922,85 @@
 trand);%0A
+%09%09System.out.println(%22%22);%0A%09%09System.out.print(transcribe(strand));%0A%09%09%0A
 %09%7D%0A%09%0A%09pu
@@ -1078,32 +1078,39 @@
 %0A%09%09%0A%09%7D%0A%0A%09public 
+static 
 String transcrib
@@ -1125,32 +1125,597 @@
  strand)%7B%0A%09%09
-return s
+ArrayList%3CString%3E s = new ArrayList%3CString%3E();%0A%09%09ArrayList%3CString%3E t = new ArrayList%3CString%3E();%0A%09%09%0A%09%09for (int i = 0; i %3C strand.length(); i++) %7B%0A%09%09%09s.add(strand.substring(i, i + 1));%0A%09%09%7D%0A%09%09%0A%09%09for (int j = 0; j %3C s.size(); j++) %7B%0A%09%09%09if (s.get(j).equals(%22A%22)) %7B%0A%09%09%09%09t.add(%22U%22);%0A%09%09%09%7D else if (s.get(j).equals(%22T%22)) %7B%0A%09%09%09%09t.add(%22A%22);%0A%09%09%09%7D else if (s.get(j).equals(%22C%22)) %7B%0A%09%09%09%09t.add(%22G%22);%0A%09%09%09%7D else %7B%0A%09%09%09%09t.add(%22C%22);%0A%09%09%09%7D%0A%09%09%7D%0A%09%09String transcribedStrand = %22%22;%0A%09%09%0A%09%09for (int k = 0; k %3C t.size(); k++)%7B%0A%09%09%09transcribedStrand = transcribedStrand + t.get(k);%0A%09%09%7D%0A%09%09return transcribedS
 trand;%0A%09%09%0A%09%7D
@@ -1723,16 +1723,23 @@
 %09public 
+static 
 String t

Update Main.java