Solved

Which of the Following Patterns Should Be Used for the Delimiter

Question 60

Multiple Choice

Which of the following patterns should be used for the delimiter to read one character at a time using a Scanner object's next method?


A) Scanner in = new Scanner(. . .) ;
In) useDelimiter("[^A-Za-z]+") ;
B) Scanner in = new Scanner(. . .) ;
In) useDelimiter("[A-Za-z]+") ;
C) Scanner in = new Scanner(. . .) ;
In) useDelimiter("[^0-9]+") ;
D) Scanner in = new Scanner(. . .) ;
In) useDelimiter("") ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents