开发者社区 问答 正文

有没有String常用方法的实例?

已解决

有没有String常用方法的实例?

展开
收起
起起又伏伏 2022-04-02 23:35:54 1058 分享 版权
1 条回答
写回答
取消 提交回答
  • 推荐回答

    public static void main(String[] args) { String str="Hellow World"; str=str.toUpperCase(); System.out.println(str); str=str.toLowerCase(); System.out.println(str); } 000

    2022-04-03 13:08:14
    赞同 展开评论