Could you help me optimize the following fragment of java code please?
For (i=0; i<=9999; i=i+1)
{
for(j=0;j<=9999;j=j+1)
{
if (a[i,j]>0 && b>0)
{
a[i,j]=a[i,j]*2 + b;
}
}
}
Thankyou
also can i just ask, could you tell me the purpose and give short examples of the input/output of the following programs.
1. the LEX in lexical analysis
2. the YACC in syntactical analysis
Thankyou again