📚 Practice Mode
Programming Languages and Database Concepts
Learn at your own pace with hints and detailed explanations
1 / 14
Multiple Choice
import java.util.regex.; class Regex2 { public static void main(String[] args) { Pattern p = Pattern.compile(args[0]); Matcher m = p.matcher(args[1]); boolean b = false; while(b = m.find()) { System.out.print(m.start() + m.group()); } } } And the command line: java Regex2 "\d" ab34ef
- 234
- 334
- 2334
- 0123456
- 01234456
- 12334567