javaÃæÊÔ
Ò»¡¢ÃæÏò¶ÔÏóµÄÌØÕ÷ÓÐÄÄЩ·½Ãæ
1.³éÏó£º
³éÏó¾ÍÊǺöÂÔÒ»¸öÖ÷ÌâÖÐÓ뵱ǰĿ±êÎ޹صÄÄÇЩ·½Ã棬ÒÔ±ã¸ü³ä·ÖµØ×¢ÒâÓ뵱ǰĿ±êÓйصķ½Ãæ¡£³éÏó²¢²»´òËãÁ˽âÈ«²¿ÎÊÌ⣬¶øÖ»ÊÇÑ¡ÔñÆäÖеÄÒ»²¿·Ö£¬ÔÝʱ²»Óò¿·Öϸ½Ú¡£³éÏó°üÀ¨Á½¸ö·½Ã棬һÊǹý³Ì³éÏ󣬶þÊÇÊý¾Ý³éÏó¡£
2.¼Ì³Ð£º
¼Ì³ÐÊÇÒ»ÖÖÁª½áÀàµÄ²ã´ÎÄ£ÐÍ£¬²¢ÇÒÔÊÐíºÍ¹ÄÀøÀàµÄÖØÓã¬ËüÌṩÁËÒ»ÖÖÃ÷È·±íÊö¹²ÐԵķ½·¨¡£¶ÔÏóµÄÒ»¸öÐÂÀà¿ÉÒÔ´ÓÏÖÓеÄÀàÖÐÅÉÉú£¬Õâ¸ö¹ý³Ì³ÆΪÀà¼Ì³Ð¡£ÐÂÀà¼Ì³ÐÁËÔʼÀàµÄÌØÐÔ£¬ÐÂÀà³ÆΪÔʼÀàµÄÅÉÉúÀࣨ×ÓÀࣩ£¬¶øÔʼÀà³ÆΪÐÂÀàµÄ»ùÀࣨ¸¸Àࣩ¡£ÅÉÉúÀà¿ÉÒÔ´ÓËüµÄ»ùÀàÄÇÀï¼Ì³Ð·½·¨ºÍʵÀý±äÁ¿£¬²¢ÇÒÀà¿ÉÒÔÐ޸ĻòÔö¼Óеķ½·¨Ê¹Ö®¸üÊʺÏÌØÊâµÄÐèÒª¡£
3.·â×°£º
·â×°Êǰѹý³ÌºÍÊý¾Ý°üΧÆðÀ´£¬¶ÔÊý¾ÝµÄ·ÃÎÊÖ»ÄÜͨ¹ýÒѶ¨ÒåµÄ½çÃæ¡£ÃæÏò¶ÔÏó¼ÆËãʼÓÚÕâ¸ö»ù±¾¸ÅÄ¼´ÏÖʵÊÀ½ç¿ÉÒÔ±»Ãè»æ³ÉһϵÁÐÍêÈ«×ÔÖΡ¢·â×°µÄ¶ÔÏó£¬ÕâЩ¶ÔÏóͨ¹ýÒ»¸öÊܱ£»¤µÄ½Ó¿Ú·ÃÎÊÆäËû¶ÔÏó¡£
4.¶à̬ÐÔ£º
¶à̬ÐÔÊÇÖ¸ÔÊÐí²»Í¬ÀàµÄ¶ÔÏó¶ÔͬһÏûÏ¢×÷³öÏìÓ¦¡£¶à̬ÐÔ°üÀ¨²ÎÊý»¯¶à̬ÐԺͰüº¬¶à̬ÐÔ¡£¶à̬ÐÔÓïÑÔ¾ßÓÐÁé»î¡¢³éÏó¡¢ÐÐΪ¹²Ïí¡¢´úÂë¹²ÏíµÄÓÅÊÆ£¬ºÜºÃµÄ½â¾öÁËÓ¦ÓóÌÐòº¯ÊýͬÃûÎÊÌâ¡£
¶þ¡¢StringÊÇ×î»ù±¾µÄÊý¾ÝÀàÐÍÂð£¿
»ù±¾Êý¾ÝÀàÐÍ°üÀ¨byte¡¢int¡¢char¡¢long¡¢float¡¢double¡¢booleanºÍshort. java.lang.StringÀàÊÇfinalÀàÐ͵ģ¬Òò´Ë²»¿ÉÒԼ̳ÐÕâ¸öÀà¡¢²»ÄÜÐÞ¸ÄÕâ¸öÀࡣΪÁËÌá¸ßЧÂʽÚÊ¡¿Õ¼ä£¬ÎÒÃÇÓ¦¸ÃÓÃStringBufferÀà¡£
Èý¡¢int ºÍ Integer ÓÐʲôÇø±ð£¿
Java ÌṩÁ½ÖÖ²»Í¬µÄÀàÐÍ£ºÒýÓÃÀàÐͺÍÔʼÀàÐÍ£¨»òÄÚÖÃÀàÐÍ£©¡£intÊÇJavaµÄÔʼÊý¾ÝÀàÐÍ£¬IntegerÊÇJavaΪintÌṩµÄ·â×°Àà¡£JavaΪÿ¸öÔʼÀàÐÍÌṩÁË·â×°Àà¡£
ÔʼÀàÐÍ·â×°Àà
boolean Boolean
char Character
byte Byte
short Short
int Integer
long Long
float Float
double Double
ÒýÓÃÀàÐͺÍÔʼÀàÐ͵ÄÐÐΪÍêÈ«²»Í¬£¬²¢ÇÒËüÃǾßÓв»Í¬µÄÓïÒå¡£ÒýÓÃÀàÐͺÍÔʼÀàÐ;ßÓв»Í¬µÄÌØÕ
Ïà¹ØÎĵµ£º
µÚÁùÕÂ
javaÀàÉè¼Æ
extendsÀàµÄ¼Ì³Ð
objectÀàÊÇËùÓÐjavaÀàµÄ×î¸ß²ã¸¸Àà
javaÖ»Ö§³Öµ¥¼Ì³Ð ²»ÔÊÐí¶àÖؼ̳Ð
Ò»¸ö×ÓÀàÖ»ÓÐÒ»¸ö¸¸Àà Ò»¸ö¸¸Àà¿ÉÓÃÓжà¸ö×ÓÀà
public default protected public
·½·¨ÖØд
ÔÚ×ÓÀà¿ÉÓøù¾ÝÐèÒª¶Ô¸¸Àà¼Ì³ÐµÄ·½·¨½øÐиÄÔì--·½·¨µÄÖØд
ÖØд·½·¨±ØÐëºÍ±»ÖØд·½·¨¾ßÓÐÏàͬµÄ·½·¨Ãû³Æ ²ÎÊýÁбí ......
µÚ¾ÅÕÂ
»ùÓÚÎı¾µÄjavaÓ¦ÓóÌÐò
inputsreamreader is=new inputstreamreader(system.in)
bufferedreader br=new bufferedreader(is)
s=br.readline();
while(!s.euqal("")){}
FLIE f=new file()
filereader ÒÔ×Ö·ûΪµ¥Î»
bufferedreaderÀàµÄreadline
ÒÔÐÐΪµ¥Î»¶ÁÈëÒ»ÐÐ×Ö·û
filewriterÒÔ×Ö·ûΪµ¥Î»ÏòÎļþд³öÊý¾ ......
µÚÊ®ÕÂ
guiÓ¦ÓóÌÐòÉè¼Æ
awt abstractwindow toolkit
gui graphical user interface
×é¼þcomponent
container ÈÝÆ÷
window ¶¥¼¶´°¿Ú
panel ½ÓÄÉÆäËû×é¼þµÄÈÝÆ÷ ²»ÄܶÀÁ¢´æÔÚ
±ØÐëÔÚÆäËûÈÝÆ÷ÖУ¨Èçwindow»òapplet£©
frameÊÇwindow×ÓÀà Ч¹ûÊÇÒ»¸ö´°¿Úsetvisible£¨true£©¿É¼û
component
container
window &n ......
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Calculator
{
public static void main(String[] args)
......
LSParserFilter---ÔØÈëÓë±£´æ
Ó¦ÓÃorg.w3c.dom ʵÏÖXMLµÄÔØÈëÓë±£´æʵÀý
/**
* ʵÏÖDOM3µÄLS(Load & Save)¹¦ÄÜ
*
* @author S.Well
* @see org.w3c.dom.DOMErrorHandler
* @see org.w3c.dom.ls.LSParserFilter
*/
public class XML_LS implements DOMErrorHandler, LSParserFilter {
private static ......