Question: I need java ,word file 1. Find and correct the error(s) in each of the following. Explain the errors in English. a) The following code

I need java ,word file  I need java ,word file 1. Find and correct the error(s)

1. Find and correct the error(s) in each of the following. Explain the errors in English. a) The following code should print integers from 100 to For (i = 100, i >= 1, i++) System.out.println(i) b) The following code should print whether the integer x is odd or even: switch (x% 2) case 0: System.out.println ("Even integer") case 1 System.out.println ("Odd integer") c) The following code should output the odd integers from 19 to l: for i19: i-1; i-2) System.out.println(i) d) The following code should output these integers: 2 5 8 11 14 17 20 counter2 do System.out.println (counter) counter += 3; While (counter 20)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!