java programming

hi

my problem is with comparing the array of characters (seq, hydrob, hydrop), while comparing the seq and the hydrob if any of the character is similar then they should be painted in a different colour also hydrop and seq should be compared in the same way and they should be painted in a different colour.

note that seq will be usually of greater length, and the hydrob and hydrop will not be of equal length

but what it does is paints the number of characters in the hydrop array irrespective of the character

for (int i=0;i<seqlength;i++)//a for loop to get a letter

{

char str1 = seq[i];// getting the first letter from

for (int j=0;j<hydroblen;j++)//for loop to check the

{

while (str1 == hydrob[j])//checking problem in here (suppose)

{

res=1;//setting a value

System.out.println("reach") ;

repaint();//calling d paint function to paint in

//System.out.println("reach") ;

//j++;

}

>

[1590 byte] By [revsa] at [2007-11-27 0:49:46]
# 1

Why do you open new thread ?

http://forum.java.sun.com/thread.jspa?threadID=5159230&messageID=9606708#9606708

http://forum.java.sun.com/thread.jspa?threadID=5159306&messageID=9605434#9605434

http://forum.java.sun.com/thread.jspa?threadID=5159390&messageID=9605772#9605772

rym82a at 2007-7-11 23:19:29 > top of Java-index,Java Essentials,Java Programming...