Page 1 of 1

What is the output if the following class was executed? Note: there are no syntax errors public static void main(String[

Posted: Sat May 14, 2022 4:35 pm
by answerhappygod
What Is The Output If The Following Class Was Executed Note There Are No Syntax Errors Public Static Void Main String 1
What Is The Output If The Following Class Was Executed Note There Are No Syntax Errors Public Static Void Main String 1 (19.95 KiB) Viewed 42 times
What is the output if the following class was executed? Note: there are no syntax errors public static void main(String[] args) { int[] array1 = { 1, 2, 5, 5, 8, 9, 7, 10 }; int[] array2 = { 1, 0, 6, 15, 6, 4, 7, 0 }; for (int i = 0; i < array1. length; i++) { for (int j = 0; i < arrayz. length; j++) { if (array == (array2[j])) { System.out.println("Common element is : " + (arrayı)); >