Which statement, inserted at the indicated blank line, will…
Which statement, inserted at the indicated blank line, will correctly terminate this loop when the end of input is reached (detected when the user enters the letter Q)?ArrayList data = new ArrayList();boolean done = false;while (!done){ String input = in.next(); if (input.equalsIgnoreCase(“Q”)) { __________ } else { double x = Double.parseDouble(input); data.add(x); }}