Given an EditText widget named usernameEditText, which of the following statements gets the string that's stored in that widget?

Given an EditText widget named usernameEditText, which of the following statements gets the string that's stored in that widget? 









a. String username = (String) usernameEditText;
b. String username = usernameEditText.toString();
c. String username = usernameEditText.getText();
d. String username = usernameEditText.getText().toString();










Answer: D