avatar
a stupid question# Java - 爪哇娇娃
p*p
1
I want print out following message:

http://www.w3.org/2001/vxml" xml:lang="en-GB">




Thank you for using the electronic government 311
birth certificate!
You should receive an e-mail containing your birth
certificate, within a few seconds.
Good
avatar
c*t
2
Normally what I do with this type of multi-line message is put that
into a resource file. If you want to use it as a template (i.e. just
changing a few fields), then replace things such as kate, female with
{0}, {1}, then use MessageFormat to generate the output.
This way, it is a lot easier to customize the output. You can even
do i18n with it ^_^

【在 p***p 的大作中提到】
: I want print out following message:
:
: http://www.w3.org/2001/vxml" xml:lang="en-GB">
:

:
:
:
: Thank you for using the electronic government 311
: birth certificate!
: You should receive an e-mail containing your birth

avatar
g*g
3
You probably miss one or more there.

【在 p***p 的大作中提到】
: I want print out following message:
:
: http://www.w3.org/2001/vxml" xml:lang="en-GB">
:

:
:
:
: Thank you for using the electronic government 311
: birth certificate!
: You should receive an e-mail containing your birth

avatar
c*z
4
That is exactly what the OP should do.
But to answer his question, you get to have \\" instead of \" to do
excaping. the first \ escapes the second \

【在 c*****t 的大作中提到】
: Normally what I do with this type of multi-line message is put that
: into a resource file. If you want to use it as a template (i.e. just
: changing a few fields), then replace things such as kate, female with
: {0}, {1}, then use MessageFormat to generate the output.
: This way, it is a lot easier to customize the output. You can even
: do i18n with it ^_^

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。