急!
ConsoleWindow cw = new ConsoleWindow();
char c1, c2, c3;
int glu = 0;
int cys = 0;
cw.out.println("Please input a DNA sequence");
c1 = cw.input.readChar();
c2 = cw.input.readChar();
c3 = cw.input.readChar();
while (c1 != 'T' || c2 != 'A' || c3 != 'A')
{
if ((c1 == 'G' && c2 == 'A' && c3 == 'A') || (c1 == 'G' && c2 ==
'A' && c3 == 'G')) // glutamic
glu++;
if ((c1 == 'T' && c2 == 'G' && c3 == 'C') || (c1 == 'T' && c2 ==
'G' && c3 == 'T')) // cysteine
cys++;
if (
c1 = cw.input.readChar();
c2 = cw.input.readChar();
c3 = cw.input.readChar();
}
cw.out.println( glu + " codons of glutamic");
cw.out.println( cys + " codons of cysteine");
DrawingWindow dw = new DrawingWindow(400, 100);
dw.drawString("The program finished. Press enter to exit ", 20, 20);
char cc = dw.awaitKey();
System.exit(0);
}
}
这个代码是用JBUILDER编的吗?