046月 2022 java判断字符串是否为url by 爱偷吃猫的鱼 public static Boolean isUrl(String url) { try { new URL(url); return true; } catch (MalformedURLException e) { return false; } } Posted in: Java ⋅ Tagged: Java