java txt 列_Java 读取txt文件 并对各个属性列分别排列?

txt文档内容:idheadachemusclepaintemperatureflue1yesyesnormalnoe2yesyeshighyese3yesyesveryhighyese4noyesnormalnoe5nonohighnoe6noyesveryhighyese7yesnohighyese8noyesnormaln...

txt文档内容:

id headache muscle pain temperature flu

e1 yes yes normal no

e2 yes yes high yes

e3 yes yes very high yes

e4 no yes normal no

e5 no no high no

e6 no yes very high yes

e7 yes no high yes

e8 no yes normal no

e9 yes yes normal yes

e10 no no high yes

输出结果:

id headache muscle pain temperature flu

e1 yes yes normal no

e2 yes yes high yes

e3 yes yes very high yes

e7 yes no high yes

e9 yes yes normal yes

e4 no yes normal no

e5 no no high no

e6 no yes very high yes

e8 no yes normal no

e10 no no high yes

..................

要求输出结果对齐 并能够同时输出muscle pain temperature flu 列的排序

展开

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值