Remove all empty elements from string array

前端 未结 4 1160
误落风尘
误落风尘 2020-12-29 01:44

I have this:

List s = new List{\"\", \"a\", \"\", \"b\", \"\", \"c\"};

I want to remove all the empty elements

4条回答
提交回复
热议问题