请问这个方法怎么写啊?

panzhixiong_cn CSDN会员 panzhixiong_cn 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我有个如下的字符串

Flanked by climate change campaigner and former US vice-president Al Gore, Mr Palmer announced his party would vote against the Government's bid to abolish the Clean Energy Finance Corporation, the Renewable Energy Target and the Climate Change Authority.

我通过一个方法想把它自动转成:
A Flanked by climate change campaigner
B and former US vice-president Al Gore, Mr
C Palmer announced his party would vote
D against the Government's bid to abolish
E the Clean Energy Finance Corporation,
F the Renewable Energy Target and the
G Climate Change Authority.

要求
1.每行长度不超过40
2.开头有按照字母顺序的排序

谢谢!
...全文
评论 14
收藏 已收藏
分享
返回顶部
panzhixiong_cn CSDN会员
Java SE 62,620 成员 307,251 内容