我如何获得最终的字符串 [英] How do I get the final String

查看:104
本文介绍了我如何获得最终的字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有字符串ASE000018A2ZEWU,ASE000018A2ZWWU,ASE000117AWERWU。



我需要将它转换为最终字符串ASE000018 | A2ZE,ASE000018 | A2ZW,ASE000117AWER



我需要从每个部分删除最后2个字符'WU',我需要在每个部分中的每9个字母之后添加分隔符'|',如ASE000018A2ZEWU需要转换为ASE000018 | A2ZE。



请帮帮我

I have the string ASE000018A2ZEWU,ASE000018A2ZWWU,ASE000117AWERWU.

I need it to be converted to a final String ASE000018|A2ZE,ASE000018|A2ZW,ASE000117AWER

I need to remove last 2 characters 'WU' from each part and I need to add the delimiter '|' after every 9 letters in each part like "ASE000018A2ZEWU" need to be converted to ASE000018|A2ZE.

Please me help me out

推荐答案

你所有答案都在这里: http://docs.oracle.com/javase/6/docs/api /java/lang/String.html [ ^ ]。



只有在遇到真正的问题时,你才需要做至少努力并提出问题。 />


-SA
All your answers are here: http://docs.oracle.com/javase/6/docs/api/java/lang/String.html[^].

You need to do at least the minimal effort and ask questions only if you face real problems.

—SA


这篇关于我如何获得最终的字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆