到目前为止,这是我的代码,不确定如何使用.matches方法
import java.util.Scanner;
public class StringAcceptance {
public static void main(String [] args) {
String s1 = new String(" ");
Scanner sc= new Scanner(System.in);
int i = 0;
i=sc.nextInt();
System.out.print("Return value:" );
System.out.println(s1.matches("(.*) 0,1 (.*)");
}
}