分割字符串
String string = request.getParameter("a-b");
String[] split = string .split("-");
int a = Integer.parseInt(split[0]);
int b = Integer.parseInt(split[1]);
分割字符串
String string = request.getParameter("a-b");
String[] split = string .split("-");
int a = Integer.parseInt(split[0]);
int b = Integer.parseInt(split[1]);