What is the output of the following?
Pattern pattern = Pattern.compile("(J)(ava)");
Matcher matcher = pattern.matcher("Java");
if(matcher.find()) {
System.out.println(matcher.group(1));
}
What is the output of the following?
Pattern pattern = Pattern.compile("(J)(ava)");
Matcher matcher = pattern.matcher("Java");
if(matcher.find()) {
System.out.println(matcher.group(1));
}