Discuss / Java / 作业

作业

Topic source

星晨丶7758

#1 Created at ... [Delete] [Delete and Lock User]

    static String buildSelectSql(String table, String[] fields) {

        // TODO:

        var sj = new StringJoiner(", ","SELECT "," FROM "+table);

        for(String str:fields){

          sj.add(str);

       }

        return sj.toString(); 

    }


  • 1

Reply