Question: it has 2 logic errors, identify them, how these errors affect the code output, and suggestions to fix them. public class PrintNumbers { public

it has 2 logic errors, identify them, how these errors affect the code output, and suggestions to fix them. public class PrintNumbers { public static void main(String[] args) { int i; int a =0; int b = 2; for (i=1; i
Step by Step Solution
3.46 Rating (159 Votes )
There are 3 Steps involved in it
Error 1 SystemoutprintlnNumber is i i This line has a syntax error The correct ... View full answer
Get step-by-step solutions from verified subject matter experts
