久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      java判斷字符串是否是整型數(shù)字

      java判斷字符串是否是整型數(shù)字

      代碼示例:

      /**      * 判斷字符串是否為數(shù)字      */     public static boolean isNumeric(String str){          Pattern pattern = Pattern.compile("[0-9]*");          Matcher isNum = pattern.matcher(str);         return isNum.matches();        }

      (免費(fèi)視頻教程推薦:java視頻教程)

      測(cè)試:

      public static void main(String[] args) { 		String str = "11"; 		String str1 = "11sdf"; 		System.out.println(isNumeric(str)); 		System.out.println(isNumeric(str1)); 	}

      輸出結(jié)果:

      true false

      相關(guān)文章教程推薦:java入門(mén)教程

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)