Java multiline string

前端 未结 30 3047
醉梦人生
醉梦人生 2020-11-22 15:55

Coming from Perl, I sure am missing the \"here-document\" means of creating a multi-line string in source code:

$string = <<\"EOF\"  # create a three-l         


        
30条回答
  •  孤街浪徒
    2020-11-22 16:24

    I know this is an old question, however for intersted developers Multi line literals gonna be in #Java12

    http://mail.openjdk.java.net/pipermail/amber-dev/2018-July/003254.html

提交回复
热议问题