Question 13
Consider the Java code given below.
import java.util.*;class Test { public static String findElement(Deque<String> dq, String element){ while(!dq.isEmpty()) { // LINE 1 { return "Element found"; } } return "Element not found"; } public static void main(String[] args) { Deque<String> dq = new ArrayDeque<String>(); dq.push("apple"); dq.push("banana"); dq.push("cherry"); dq.push("date"); System.out.println(findElement(dq, "cherry")); }}Identify the appropriate option(s) to fill in place of LINE 1 such that the output is
Element found