2011年7月25日 星期一

[mysql] Jtext 判斷有無輸入 字串


String Price_text = Price_jTextField1.getText();





if ( Price_text.length() == 0 || Price_text == null ){

Price_text = Integer.toString(0);

}


Reference :

http://www.javaworld.com.tw/jute/post/view?bid=5&id=152892&sty=1&tpg=22&age=0

0 意見:

張貼留言