The correct choice is B. String phrase = sc.nextLine();
The nextLine() method of the Scanner class retrieves the entire line of input, including any whitespace such as spaces. The other choices would either not compile (C and D) or retrieve only part of the input (A and E).