「java」replaceAll()で文字列を置換するコード2017年6月18日 サンプルコード str1=”abcd”; str2=”cd”; str3=str1.replaceAll(str2,””); //str3=”ab” Software