Home java Help fix the error 'not a statement'

Help fix the error ‘not a statement’




The following compilation code issues an error: error: (15, 23) Java: not a statement in this line: for (j = 1, j & lt; = i; j ++; k ++)

Answer 1, Authority 100%

The first for wrote correctly, and the second is not. Instead of , you need ; .

for (j = 1; j & lt; = i; j ++, k ++)
       System.out.printLN (K + "");

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions