网站域名 邮箱,拨付网站建设费用的报告,低代码开发工具,建设代刷网站有一个很长的字符串#xff0c;想分成多行书写#xff0c;主要为了美观。VB代码中可以将一个很长的字符串分成多行书写#xff0c;例如#xff1a;String stradfasdfasdfas \asdfasdfasdfasdf \asdfasdf Java 没有相似的处理方式。变通处理方式#xff1a;Str…有一个很长的字符串想分成多行书写主要为了美观。VB代码中可以将一个很长的字符串分成多行书写例如String stradfasdfasdfas \asdfasdfasdfasdf \asdfasdf Java 没有相似的处理方式。变通处理方式String s It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, we had everything before us, we had nothing before us;String s new StringBuilder().append(it was the spring of hope, it was the winter of despair,).append(we had everything before us, we had nothing before us).toString();Java 12 13 以上版本才有类似功能。REFhttps://blog.csdn.net/cunxiedian8614/article/details/105698682?utm_mediumdistribute.pc_relevant_bbs_down.none-task--2~all~sobaiduend~default-1.nonecasedepth_1-utm_sourcedistribute.pc_relevant_bbs_down.none-task--2~all~sobaiduend~default-1.nonecase