1.

Rewrite the following code using while loop :int a,b;for(a = 10, b = 4; a < =16; a++, b + = 2){jTextArea1.append(" " + a++);}JOptionPane.showMessageDialog(null,"Finished!!!");

Answer»

int a = 10, b = 4;

while(a<=16)

{

jTextArea1.append(" "+a++);

a++;

b+=2;

}

JOptionPane.showMessageDialog(null,"Finished!!!");



Discussion

No Comment Found