多行Java字符串的任何未来计划 [英] Any Future Plans for Multiline Java String

查看:63
本文介绍了多行Java字符串的任何未来计划的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

本着这个问题的精神: https://stackoverflow.com/questions/1886966/java-string-declaration-occupying-多行

In the spirit of this question: https://stackoverflow.com/questions/1886966/java-string-declaration-occupying-multiple-lines

在Java的任何将来版本中,将有任何计划允许在Java脚本中继续字符串吗?

will there be any plans in any future version of Java to allow string continuation in the java scource?

String haveUeverSeenLorem =
  "Lorem ipsum dolor sit amet, \
  consectetur adipisicing elit, \
  sed do eiusmod tempor incididunt \
  ut labore et dolore magna aliqua.";

一种或另一种方式,例如就像上面的例子一样.

Either one way or another, e.g. like the above example.

推荐答案

似乎不太可能.正如 Java 7-多行字符串

这篇关于多行Java字符串的任何未来计划的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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