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++;
}
>

