class Playground { public static void main(String[ ] args) { String str = "東京都千代田区 123-4567"; System.out.println(str.matches(".*[0-9]{3}-[0-9]{4}.*")); } }
何故だ?
..\Playground\:7: error: unmappable character for encoding Cp1252
String str = “µ?▒Σ║¼Θâ╜σ?âΣ╗úτö░σî║ 123-4567”;
^
..\Playground\:7: error: unmappable character for encoding Cp1252
String str = “µ?▒Σ║¼Θâ╜σ?âΣ╗úτö░σî║ 123-4567”;
^
2 errors