Replace WWW, XXX, YYY, and ZZZ in the code below to write a method that takes an array of Strings and two strings (str1 and str2) to check if the str1 is present in the array. If str1 is present replace it with str2 and return the modified array, otherwise return the original array.  WWW      [ Select ] String[ ] findReplace(String[ ] arry, String str1, String str2) String findReplace(String arry, String str1, String str2) String findReplace(String[ ] arry, String str1, String str2) String[ ] findReplace(String str1, String str2) XXX      int idx = 0; idx<arry.length; idx++ YYY     [ Select ] arry[idx].equals(str1) arry(idx).equals(str1) arry.equals(str1) arry[idx] == str1 ZZZ    return arry多重下拉选择题

题目图片

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!