Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JAVA»ù´¡:³£Á¿Óë±äÁ¿

³£Á¿
    JavaÖеij£Á¿ÖµÊÇÓÃÎÄ×Ö´®±íʾµÄ,ËüÇø·ÖΪ²»Í¬µÄÀàÐÍ,ÈçÕûÐͳ£Á¿123,ʵÐͳ£Á¿1.23,×Ö·û³£Á¿‘a’,²¼¶û³£Á¿true¡¢falseÒÔ¼°×Ö·û´®³£Á¿"This is a constant string."¡£ÓëC¡¢C++²»Í¬,JavaÖв»ÄÜͨ¹ý#defineÃüÁî°ÑÒ»¸ö±êʶ·û¶¨ÒåΪ³£Á¿,¶øÊÇÓùؼü×ÖfinalÀ´ÊµÏÖ,Èç
final double PI=3.14159( ÓÐ ¹Ø finalµÄ Óà ·¨ ¼û[6.2.3])¡£
±äÁ¿
    ±äÁ¿ÊÇJava³ÌÐòÖеĻù±¾´æ´¢µ¥Ôª,ËüµÄ¶¨Òå°üÀ¨±äÁ¿Ãû¡¢±äÁ¿ÀàÐͺÍ×÷ÓÃÓò¼¸¸ö²¿·Ö¡£
¢Ù±äÁ¿ÃûÊÇÒ»¸öºÏ·¨µÄ±êʶ·û,ËüÊÇ×Öĸ¡¢Êý×Ö¡¢Ï»®Ïß»òÃÀÔª·û"¡ç"µÄÐòÁÐ,Java¶Ô±äÁ¿ÃûÇø·Ö´óСд,±äÁ¿Ãû²»ÄÜÒÔÊý×Ö¿ªÍ·,¶øÇÒ²»ÄÜΪ±£Áô×Ö¡£ºÏ·¨µÄ±äÁ¿ÃûÈç:myName¡¢value-1¡¢dollar¡çµÈ¡£·Ç·¨µÄ±äÁ¿ÃûÈç:2mail¡¢room#¡¢class(±£Áô×Ö)µÈ,±äÁ¿ÃûÓ¦¾ßÓÐÒ»¶¨µÄº¬Òå,ÒÔÔö¼Ó³ÌÐòµÄ¿É¶ÁÐÔ¡£
¢Ú±äÁ¿ÀàÐÍ¿ÉÒÔΪÉÏÃæËù˵µÄÈÎÒâÒ»ÖÖÊý¾ÝÀàÐÍ¡£
¢Û±äÁ¿µÄ×÷ÓÃÓòÖ¸Ã÷¿É·ÃÎʸñäÁ¿µÄÒ»¶Î´úÂë¡£ÉùÃ÷Ò»¸ö±äÁ¿µÄͬʱҲ¾ÍÖ¸Ã÷Á˱äÁ¿µÄ×÷ÓÃÓò¡£°´×÷ÓÃÓòÀ´·Ö,±äÁ¿¿ÉÒÔÓÐÏÂÃ漸ÖÖ:¾Ö²¿±äÁ¿¡¢Àà±äÁ¿¡¢·½·¨²ÎÊý¡¢ÀýÍâ´¦Àí²ÎÊý¡£
¾Ö²¿±äÁ¿ÔÚ·½·¨»ò·½·¨µÄÒ»¿éÂëÖÐÉùÃ÷,ËüµÄ×÷ÓÃÓòΪËüËùÔڵĴúÂë¿é(Õû¸ö·½·¨»ò·½·¨ÖеÄij¿é´úÂë)¡£
Àà±äÁ¿ÔÚÀàÖÐÉùÃ÷,¶ø²»ÊÇÔÚÀàµÄij¸ö·½·¨ÖÐÉùÃ÷,ËüµÄ×÷ÓÃÓòÊÇÕû¸öÀà¡£
·½·¨²ÎÊý´«µÝ¸ø·½·¨,ËüµÄ×÷ÓÃÓò¾ÍÊÇÕâ¸ö·½·¨¡£
ÀýÍâ´¦Àí²ÎÊý´«µÝ¸øÀýÍâ´¦Àí´úÂë,ËüµÄ×÷ÓÃÓò¾ÍÊÇÀýÍâ´¦Àí²¿·Ö¡£
ÔÚÒ»¸öÈ·¶¨µÄÓòÖÐ,±äÁ¿ÃûÓ¦¸ÃÊÇΨһµÄ¡£Í¨³£,Ò»¸öÓòÓôóÀ¨ºÅ{}À´»®¶¨¡£
¢Ü±äÁ¿µÄÉùÃ÷¸ñʽΪ:
type identifier[=value][,identifier[=value]…];
ÀýÈç:int a,b,c;
double d1,d2=0.0;
ÆäÖÐ,¶à¸ö±äÁ¿¼äÓöººÅ¸ô¿ª,d2=0.0¶ÔʵÐͱäÁ¿d2¸³³õÖµ0.0,Ö»Óоֲ¿±äÁ¿ºÍÀà±äÁ¿ÊÇ¿ÉÒÔÕâÑù¸³³õÖµµÄ,¶ø·½·¨²ÎÊýºÍÀýÍâ´¦Àí²ÎÊýµÄ±äÁ¿ÖµÊÇÓɵ÷ÓÃÕ߸ø³öµÄ¡£
µ½Èí¼þ¹«Ë¾Ñ§IT¼¼Êõhttp://www.tsp2c.cn/


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

java String.Format() ÈÕÆÚ¸ñʽÓ÷¨

 Ô­ÎÄ´«ËÍÃÅ£ºhttp://solodu.javaeye.com/blog/454546
JDK1.5ÖУ¬StringÀàÐÂÔöÁËÒ»¸öºÜÓÐÓõľ²Ì¬·½·¨String.format():ÏÖÓÐÒ»¸öʱ¼ä'20090903'Ҫת»¯³ÉÖ¸¶¨Ê±¼äµÄjava.util.Date¸ñʽ
private Date getStartGregorianTime(String date) {
Date d_date = DateUtil.parseDate(date);
int year = new ......

mysqlÖÐÎÄÅÅÐò¼°javaÖÐÎÄÅÅÐò


Ö®ËùÒÔдÕâƪ²©¿Í£¬ÊÇÒòΪǰ¼¸Ìì²ÅÅöµ½ÁËÕâôһ¸öÎÊÌ⣬ÒÔÇ°»¹²»ÖªµÀmysqlÓÐÕâôһ¸öÎÊÌâ¡£
ÎÒÃǵÄϵͳʹÓÃÁËstruts+hibernate£¬Êý¾Ý¿âʹÓõÄÊÇmysql£¬×Ö·û¼¯Í³Ò»Îªutf-8¡£
±¾À´ÒѾ­Íê³ÉÁË£¬µ«ÊÇϵͳʹÓõÄʱºò£¬·¢ÏÖ²é³öÀ´µÄÈËÃûûÓÐ˳Ðò£¬±¾À´ÒÔΪºÜ¼òµ¥£¬ÔÚ²éѯµÄʱºò£¬Ö¸¶¨°´ÕÕnameÅÅÐò¾Í¿ÉÒÔÁË£¬Æñ֪ʵ¼ÊÒ»×ö²Å·¢Ï ......

java exception javaÒì³£»ã×Ü2009

java exception ½â¾ö·½°¸ - ÎÒµÄÒì³£Íø|Òì³£|exception|myexception 831 - ActionMessages 832 - could not instantiate id generator 833 - javax.servlet.jsp.JspException 834 - javax.naming.NoInitialContextException 835 - net.sf.hibernate.HibernateException 836 - org.hibernate.exception.GenericJDBCExceptio ......

·ÖÏíJavaÃæÊÔÖÐÓöµ½µÄһЩ¾­µäËã·¨ÌâÄ¿

1.дһ¸ö·½·¨£¬ÓÃÒ»¸öforÑ­»·´òÓ¡¾Å¾Å³Ë·¨±í
  /**
* ´òÓ¡¾Å¾Å³Ë·¨¿Ú¾÷±í
*/
public void nineNineMulitTable(){
for (int i = 1,j = 1; j <= 9; i++) {
System.out.print(i+"*"+j+"="+i*j+" ");
if(i==j){
i=0;
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ