Java 18일차 6 (문자열 메소드)
package j21_문자열메소드; import java.util.function.Function; public class StringMethod3 { public static void main(String[] args) { Function replacePhoneToken = phoneNumber -> phoneNumber.replaceAll(" ", "").replaceAll("/", "").replaceAll("-", "").replaceAll("[.]","");/*정규식에서 [.]*/ String phone = "010-4142-3421"; //String phone1 = "010-9988/1916"; //String phone2 = "010-9988/1916"; //String phone3 = "..
2022.12.05