Programming Languages and Database Concepts

Time: 00:00:00
0
Attempted
14
Not Attempted
0
Marked For Review
0
Attempted & Reviewed

Question 1 of 14

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

Select Your Answer:

All Questions

Attempted
Not Attempted
Marked for Review
Attempted & Reviewed
Current