Page 1 of 1

What would the output be given the following. Assume it's part of a class that is executed. The order of the output valu

Posted: Sat May 14, 2022 4:36 pm
by answerhappygod
What Would The Output Be Given The Following Assume It S Part Of A Class That Is Executed The Order Of The Output Valu 1
What Would The Output Be Given The Following Assume It S Part Of A Class That Is Executed The Order Of The Output Valu 1 (41.3 KiB) Viewed 55 times
What would the output be given the following. Assume it's part of a class that is executed. The order of the output values matters. Note: there are no errors in this code. public static void main(String[] args) { String str = "sphinx of black quartz judge my vow": for (int i = str. length() - 1; i >= 0; i--) { boolean check = checkLetter(str.charAt()); if (check) { System.out.println(str.charAt(i)); ) ) ) private static boolean checkLetter(char inletter) { switch(inLetter) { case 'a' case 'e case 'o' case u return true; default: return false; }