javaÑéÖ¤Êý×Ö
1.javaÀà¿â×Ô´øµÄ·½·¨£º
1¡¢public boolean isNumber(String str)
{
if(java.lang.Character.isDigit(msg.charAt(0))){
return true;
}
return false;
}
}
2.¸üУºÓÃÕýÔò±í´ïʽ
Ê×ÏÈÒªimport java.util.regex.Pattern ºÍ java.util.regex.Matcher
ÕâÁ½¸ö°ü£¬»òÕß²»µ¼Èë°ü£¬Ö±½ÓÓãº
//ÕýÔò±í´ïʽÊý×ÖÑéÖ¤
public boolean isNumber(String str)
{
java.util.regex.Pattern pattern=java.util.regex.Pattern.compile("[0-9]*");
java.util.regex.Matcher match=pattern.matcher(str);
if(match.matches()==false)
{
return false;
}
else
{
return true;
}
}
Ïà¹ØÎĵµ£º
JAVA Á¬½Ó SQLServer 2000 ËùÐèÒªµÄÈý¸öJAR°ü¡£
http://download.csdn.net/source/2283940
----------------
Code:
------------------------
Connection conn = null;
Statement sta = null;
try {
Class.forName("com.microsoft.jdbc.sqlserver.SQLServer ......
³ý °Ë¸ö»ù±¾ÀàÐÍ£¨Long ,short,int ,float,double,char,byte,boolean£©Í⣬ÆäËûµÄÊý¾ÝÀàÐͶ¼±»³ÆΪ“ÒýÓÃÀàÐÍ”£¬Ò²¼´£ºObject¡£ObjectµÄ²Ù×÷È«ÊÇͨ¹ý¶ÔÏóµÄÒýÓã¨Object references£©£¬ÒýÓÿÉÒÔÀí½âΪָÕ룬ÈÝÒ×ÈÃÈ˶ÔÓ¦µ½C£«£«µÄ´«Ö·ÉÏÃæÈ¥¡£ËùÒÔ£¬´ó¼ÒҪעÒâඣ¡javaÀïÃæËä˵ûָÕ룬Æäʵȴ²»È»¡£ ......
java¹¤×÷ÕßÉçÇøÖ÷°ì
1. ¡¾¸´Ñ¡¡¿ÊÕÈëÓÐÕÇ£¬ÓиÉÍ·
22.22%
2. ¡¾¸´Ñ¡¡¿ÊÕÈë²»ÀÖ¹Û£¬Ã»¸ÉÍ·
8.89%
3. ¡¾µ¥Ñ¡¡¿ÄêÊÕÈë50ÍòÒÔÉÏ
2.22%
4. ¡¾µ¥Ñ¡¡¿ÄêÊÕÈë20Íò~50Íò
4.44%
5. ¡¾µ¥Ñ¡¡¿ÄêÊÕÈë10Íò~20Íò ......
Èç¹ûÄãÓõÄÊÇmyeclipse 6.0 ¶øÇÒ ÔÚʹÓÃ
@Override ʱ³öÏÖÒÔÏ´íÎó£º
The method XXXXXX of type XXXXXXXXX must
override a superclass method
ÄÇÊÇÒòΪÄãµÄCompiler ÊÇjdk1.5£¬Ö»Òª°ÑËü¸ÄΪ 1.6¾Í¿ÉÒÔÁË
·½·¨£º
1. window ->preferences... -> java -> Compiler
2. Compiler compliance lev ......
Ò».±àд¹¹ÔìÆ÷µÄÓÐЧ׼Ôò£º Óþ¡¿ÉÄܼòµ¥µÄ·½·¨Ê¹¶ÔÏó½øÈëÕý³£×´Ì¬£¬Èç¹û¿ÉÒԵĻ°£¬±ÜÃâµ÷ÓÃÆäËû·½·¨¡£ÔÚ¹¹ÔìÆ÷ÄÚΨһÄܹ»°²È«µ÷ÓõÄÄÇЩ·½·¨ÊÇ»ùÀàÖеÄfinal·½·¨£¨Ò²ÊÊÓÃÓÚprivate·½·¨£¬ËüÃÇ×Ô¶¯ÊôÓÚfinal·½·¨£©¡£ ¶þ.Óü̳нøÐÐÉè¼ÆµÄ×¼Ôò£º Óü̳бí´ïÐÐΪ¼äµÄ²îÒ ......