2009-06-15から1日間の記事一覧

リテラル

複数行文字列リテラル Scalaでは複数行の文字列リテラルを"""で表します。 object Main extends Application { val str1 = """the present string spans three lines.""" println(str1) } とすると、 the present string spans three lines. このように表示…