2015-12-01から1ヶ月間の記事一覧
今日、ぶち当たった問題は 文字列の部分を削除するということ。そのためには、 substring を使用する。 APIでの説明はこんな感じ。 substring public String substring(int beginIndex, int endIndex) この文字列の部分文字列である新しい文字列を返します。…
改行コードを書くためには System.getProperty("line.separator"); それは、 String a = System.getProperty("line.separator"); System.out.println("あああ" + a + "いいい"); // 次の解説のため String b = ("あああ" + a + "いいい"); を使用する。 する…