62,614
社区成员
发帖
与我相关
我的任务
分享
class Feline
{
public static void main(String[] args)
{
Long x = 42L;
Long y = 44L;
System.out.println(""+7+2+" ");
System.out.println(foo()+x+5);
System.out.println(x+5+foo());
}
static String foo() {
return "foo";
}
}
class Feline
{
public static void main(String[] args)
{
Long x = 42L;
Long y = 44L;
System.out.println(""+7+2+" ");
System.out.println(foo()+x+5);//A,输出为foo425
System.out.println(x+5+foo());//B,输出47foo
}
static String foo() {
return "foo";
}
}
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());
}
}
}