Menu
Question Index
...

Which line of code tells a scanner called sc to use a single digit as a delimiter?


sc.useDelimiter("d");
sc.useDelimiter("\d");
sc.useDelimiter("\\d");
sc.useDelimiter("d+");
sc.useDelimiter("\d+");
sc.useDelimiter("\\d+");

Doubts

Problems

Topic: Java Regular Expression

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App