Your browser does not support JavaScript!

Which of the following is a valid statement to accept String input?

  • String num = scannextText();
  • None of the above
  • string str = scannextShort();
  • String str = JOptionPaneshowInputDialog(""); Correct
  • String str = scannextString();
Feedbacks
PreciousBoar - 1 year ago
Downvoted this question
Similar ITE-6104 questions