/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package schoolReport;
import java.util.*;
/**
*
* @author Administrator
*/
public class ComputeScore {
double compute(String chengjiForm){
Scanner scanner = new Scanner(chengjiForm);//创建scanner,将chengjiForm传递给构造方法的参数
String regex = "[^0123456789.]+";
scanner.useDelimiter(regex); //scanner调用useDelimiter(String regex),将regex传递给该方法的参数
double sum=0;
while(sc