Question: IN JAVA public static void main(String[] args) ); 19 /*** 2 Replace even numbers in an integer array with 3 */ 4 public class
IN JAVA ![IN JAVA public static void main(String[] args) " "); 19 /*** 2](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f39ad128132_91266f39ad091a71.jpg)
public static void main(String[] args) " "); 19 /*** 2 Replace even numbers in an integer array with 3 */ 4 public class ReplaceEvenWithZero 5 6- 7 8 int[]a = new int[]{14, 2, 19, 3, 15, 22, 18, 7, 44, 39, 51, 78} ; 9 10 // Print array a 11 System.out.println("Before replacing even numbers with 0:"); 12 for (int i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
