我有一个脚本读取以逗号分隔的文本文件,但是无论何时使用Trim(str)我已经在文件中提取的其中一个值上,它将不起作用... 我的文本文件: some string, anotherstring, onelaststring
some string, anotherstring, onelaststring
some string, anotherstring, onelaststring
我有,我有这个片段的活动.... et = (EditText) findViewById(R.id.et);
tv = (TextView) findViewById(R.id.textView8);
String name =et.getText().toString();
String a ="a";
String b ="b";
String c ="c";
String d
如何删除逗号分隔字符串 “0000-00-00” ID Name Return Date
1 A 0000-00-00,2016-02-1,2016-1-15
2 B 0000-00-00,2016-04-1
3 c 0000-00-00,2016-04-4
期待答案 ID Name Return Date
1 A 2016-02-1