Java multiline string

前端 未结 30 2968
醉梦人生
醉梦人生 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:37

    Another option may be to store long strings in an external file and read the file into a string.

提交回复
热议问题