public static void main(String[] args) {
        TestBayes tb = new TestBayes();
        ArrayList<ArrayList<String>> datas = null;
        ArrayList<String> testT = null;
        Bayes bayes = new Bayes();
        try {
            System.out.println("请输入训练数据");
            datas = tb.readData();
            while (true) {
                System.out.println("请输入测试元组");
                testT = tb.readTestData();
                String c = bayes.predictClass(datas, testT);
                System.out.println("The class is: " + c);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }