import java.io.*; public class TestAALookUp { public static void main( String[] args ) throws IOException { TwoWayLookUp tw = TwoWayLookUp.getInstance(); if( args.length == 1 ) { if( args[0].length() < 1 || args[0].length() > 3 ) System.exit(9); String[] result = tw.getAcidsFromDNA( args[0] ); if( result == null ) { System.out.println("That didn't correspond to a " + "valid sequence of 1 to 3 DNA bases." ); return; } StringBuffer sbuf = new StringBuffer(args[0]); if( args[0].length() < 3 ) sbuf.append('_'); if( args[0].length() == 1 ) sbuf.append('_'); String s = sbuf.toString(); for( int i=0; i