Java 数据处理
源数据如下
CLASS STUDENTID SUBJECT SCORE
Class one 1 English 84
Class one 1 Math 77
Class one 1 PE 69
Class one 2 English 81
Class one 2 Math 80
…
期望输出如下:
CLASS STUDENTID English Math PE
Class one 1 84 77 69
Java 如何实现
回答
行转列,简单啊
源数据如下
CLASS STUDENTID SUBJECT SCORE
Class one 1 English 84
Class one 1 Math 77
Class one 1 PE 69
Class one 2 English 81
Class one 2 Math 80
…
期望输出如下:
CLASS STUDENTID English Math PE
Class one 1 84 77 69
Java 如何实现
行转列,简单啊