java的string和stringbuilder

StringBuilder的方法有

  1. reverse
  2. append

StringBuilder转换为String
StringBuilder.toString()

String转换为StringBuilder
new StringBuilder(String s)

posted @ 2021-04-30 22:34  code-G  阅读(39)  评论(0编辑  收藏  举报