JAVAѧϰ±Ê¼ÇµÚÒ»½²091031
Êý¾ÝÀàÐÍ£º
(4Àà8ÖÖ)
Âß¼ÐÍ£boolean
×Ö·ûÐÍ£ char
ÊýÖµÐÍ£º
ÕûÊýÐÍ£ byte, short, int, long
¸¡µãÊýÐÍ£ float, double
·Java ÓïÑÔÖл¹ÔÊÐíʹÓÃתÒå×Ö·û ‘\’ À´½«ÆäºóµÄ×Ö·ûת±äΪÆäËüµÄº¬Òå.‘\n’´ú±í»»Ðзû
·JavaÕûÐͳ£Á¿Ä¬ÈÏΪintÐÍ£¬ÉùÃ÷longÐͳ£Á¿¿ÉÒÔºó¼Ó‘ l ’»ò‘ L ’ £¬È磺int i1 = 600; //ÕýÈ· long l1 = 8888888888L; //±ØÐë¼ÓL·ñÔò»á³ö´í
·Java ¸¡µãÐͳ£Á¿Ä¬ÈÏΪ double ÐÍ£¬ÈçÒªÉùÃ÷Ò»¸ö³£Á¿Îª float ÐÍ£¬ÔòÐèÔÚÊý×ÖºóÃæ¼Ó f »ò F £¬È磺double d = 12345.6; //ÕýÈ· float f = 12.3f; //±ØÐë¼Óf·ñÔò»á³ö´í
----------------------------------------------------------------------------------------------------------------------------------------------
ÔËËã·û£º
Âß¼ÔËËã·û£º !(·Ç)£¬ &&(¶Ì·Óë)£¬||(¶Ì·»ò)£¬^ (Òì»ò£¬Á½Õß²»Í¬·µ»ØÕæ)£¬& , |
ËãÊõÔËËã·û£º +£¬-£¬*£¬/£¬%(È¡Óà)£¬++£¬--
·×Ô¼Ó×Ô¼õ£¨++£¬--£©ÔÚǰʱÏÈÔËËãÔÙȡֵ,ÔÚºóʱÏÈȡֵÔÙÔËËã¡£
eg:
int i1 = 10, i2 = 20;
int i = i2++; //iÏȵÈÓÚi2(20),È»ºói2×Ô¼Ó
System.out.print("i=" + i);//20
System.out.println(" i2=" + i2);//21
i = ++i2;
System.out.print("i=" + i);//22
System.out.println(" i2=" + i2);//22
i = --i1;
System.out.print("i=" + i);//9
System.out.println(" i1=" + i1);//9
i = i1--;
System.out.print("i=" + i);//9
System.out.println(" i1=" + i1);//8
-------------------------------------
Ïà¹ØÎĵµ£º
´ËÎÄÖеĴúÂëÖ÷ÒªÁгöÁ¬½ÓÊý¾Ý¿âµÄ¹Ø¼ü´úÂ룬ÆäËû·ÃÎÊÊý¾Ý¿â´úÂëÊ¡ÂÔ
¡¡¡¡1¡¢Oracle8/8i/9iÊý¾Ý¿â£¨thinģʽ£©
¡¡¡¡¡¡¡¡Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
¡¡¡¡¡¡¡¡String url="jdbc:oracle:thin:@localhost:1521:orcl";
¡¡¡¡¡¡¡¡//orclΪÊý¾Ý¿âµÄSID
¡¡¡¡¡¡¡¡String user="test";
¡ ......
import java.io.File;
/**
* @description <p>java ·¾¶</p>
* @author swandragon
* @date Nov 5, 2009
*/
public class FilePath{
/**
* ¿ª·¢Öв»ÒªÊ¹ÓÃSystem.getProperty("user.dir")»ñÈ¡µ±Ç°Óû§Ä¿Â¼µÄÏà¶Ô·¾¶
* Ò²¾¡¿ÉÄܲ»ÒªÊ¹Óþø¶Ô·¾¶£¬Ê¹Óþø¶Ô·¾¶Ê±¿ÉÒÔÔÚÅäÖÃÎļþÖÐ ......
1.»ù±¾¸ÅÄîµÄÀí½â
¾ø¶Ô·¾¶£º¾ø¶Ô·¾¶¾ÍÊÇÄãµÄÖ÷Ò³ÉϵÄÎļþ»òĿ¼ÔÚÓ²ÅÌÉÏÕæÕýµÄ·¾¶£¬(URLºÍÎïÀí·¾¶)ÀýÈ磺
C:xyz est.txt ´ú±íÁËtest.txtÎļþµÄ¾ø¶Ô·¾¶¡£http://www.sun.com/index.htmÒ²´ú±íÁËÒ»¸öURL¾ø¶Ô·¾¶¡£
Ïà¶Ô·¾¶£ºÏà¶ÔÓëij¸ö»ù׼Ŀ¼µÄ·¾¶¡£°üº¬WebµÄÏà¶Ô·¾¶£¨HTMLÖеÄÏà¶ÔĿ¼£©£¬ÀýÈ磺ÔÚ
Servl ......
If the requested address is not a valid virtual memory address (it doesn't belong to any of
the memory segments of the executing process), the page cannot be validated, and
a segmentation fault is generated. This vectors control to another part of the kernel and
usually results in the pro ......
Óà Java ½âÃÜ C# ¼ÓÃܵÄÊý¾Ý(DES)
[ÔÎĵØÖ·£ºhttp://yidinghe.cnblogs.com/articles/449212.html]
½ñÌìÅöÉÏÒ»¼þÁîÎÒÍ·´óµÄÊÂÇé¡£ÎÒÃǵÄϵͳҪºÍÒ»¸öÍⲿϵͳ½øÐÐͨѶ£¬´«Ê䷽ʽÊDzÉÓà DES Ëã·¨¶ÔÏûÏ¢½øÐмÓÃÜ£¬ÔÙÓà BASE64 ±àÂë¡£²»¹ý¶Ô·½ÏµÍ³ÊÇÓà C# дµÄ¡£Æ½Ì¨²»Ò»Ñù£¬ÓÚÊÇÎҺͶÔÃæµÄÀÏÐÖÏȲâÊÔһϼÓÃܽâÃÜ¡£ ......