2005-09-09から1日間の記事一覧

本日読むプログラム

String.replaceAllの使い方 public class sample1 { public static void main(String[] args) throws Exception { String a = "a == b"; a = a.replaceAll("==","!="); System.out.println(a); } }replaseAll(String,String)はJ2SE1.4以降にあるメソッドです…