JAVA³ÌÐòÈ«¾Ö¼üÅ̼àÌýʼþ
// ×¢²áÓ¦ÓóÌÐòÈ«¾Ö¼üÅÌʼþ, ËùÓеļüÅÌʼþ¶¼»á±»´Ëʼþ¼àÌýÆ÷´¦Àí.
Toolkit tk = Toolkit.getDefaultToolkit();
tk.addAWTEventListener(new MyAWTEventListener(), AWTEvent.KEY_EVENT_MASK);
class MyAWTEventListener implements AWTEventListener {
private boolean controlPressed = false;
private boolean cPressed = false;
@Override
public void eventDispatched(AWTEvent event) {
if (event.getClass() == KeyEvent.class) {
// ±»´¦ÀíµÄʼþÊǼüÅÌʼþ.
KeyEvent keyEvent = (KeyEvent) event;
if (keyEvent.getID() == KeyEvent.KEY_PRESSED) {
keyPressed(keyEvent);
} else if (keyEvent.getID() == KeyEvent.KEY_RELEASED) {
keyReleased(keyEvent);
}
}
}
private void keyPressed(KeyEvent event) {
if (event.getKeyCode() == KeyEvent.VK_CONTROL) {
controlPressed = true;
} else if (event.getKeyCode() == KeyEvent.VK_C) {
cPressed = true;
}
if (controlPressed && cPressed) {
&nbs
Ïà¹ØÎĵµ£º
Õâ¸ö¿ò¼ÜÒ²ÊÇΪgoogle app engine×¼±¸µÄ¡£µ±Ê±¸Ð¾õÖ±½ÓÔÚgaeÉÏsevletÌ«·³ÈËÁË£¬¾Í·â×°¸ö¼òÒ׵Ŀò¼Ü¡£Ê¹ÓõÄʱºòÖ»ÐèÒªÅäÖÃweb.xmlÖÐDispacherSevletºÍpackage.propertiesÖеÄpackage.path£¨Ä¬ÈÏɨÃèµÄ°ü£©¼´¿É
gaeÀý×Ó£ºhttp://orzblogs.appspot.com/Home.htm
´óѧµÄʱºòºÜBS java£¬Ñ§ÁËÖ®ºó¾ÍÈÓµôÁË£¬ÏÖÔÚ¹¤×÷Á˲ſªÊ¼ ......
ÔÚ×öweb¿ª·¢µÄʱºò£¬¾³£ÐèÒªÔÚÒ»¶¨µÄʱ¼äÈ¥¸úÐÂijЩ¶«Î÷£¬»òÊǼÓÔØÄ³Ð©¶«Î÷£¬Õâ¾ÍÓõ½Á˶¨Ê±Æ÷¡£
µ±Web¹¤³ÌÆô¶¯Ê±£¬¶¨Ê±Æ÷ÄÜ×Ô¶¯¿ªÊ¼¼ÆÊ±£¬ÔÚÕû¸öWeb¹¤³ÌµÄÉúÃüÆÚÀ¶¨Ê±Æ÷ÿ¹ýÒ»¶Îʱ¼ä¾ÍÖ´ÐÐÒ»´Î£¬ËùÒÔ¿¼ÂǶ¨Ê±Æ÷´æ·ÅµÄλÖá£
¶¨Ê±Æ÷¿Ï¶¨²»Äܲ»Äܼòµ¥µÄ´æÔÚÓÚµ¥¸öServlet»òJavaBeanÖУ¬±ØÐëÄ ......
Èí¼þ¿ª·¢»ù´¡
¼ÆËã»úÊÇÖ´ÐгÌÐòÖ¸ÁîµÄµç×ÓÉ豸£¬ÊäÈë¡¢Êä³ö¡¢´æ´¢ºÍ´¦Àí
CPU²¿¼þ£ºËãÊõÂß¼µ¥Ôª(ALU)£¬¿ØÖƵ¥Ôª
´æ´¢Æ÷£ºÖ÷´æ´¢Æ÷£¨ÁÙʱ´æ´¢Êý¾Ý£©£¬¸¨Öú´æ´¢Æ÷£¨ÓÀ¾Ã´æ´¢£©
  ......
´ó¼Ò¶¼ÖªµÀJAVAÖÐʹÓÃOBJECT×÷ΪΨһµÄ»ùÀà¡£µ«ÊÇJAVAµÄÉè¼ÆÕßΪʲôҪÕâÑù×öÄØ£¿ÖضÁ¡¶TTHINKING IN JAVA¡·£¬µÃ³öÒÔÏÂÔÒò£º
1£¬JAVAÊÇ´¿ÃæÏò¶ÔÏóµÄÓïÑÔ¡£µ¥¼Ì³ÐÌåϵ±£Ö¤ÁËËùÓÐн¨µÄ»òJDKÖÐÒÑÓеÄÀà¶¼±ØÐë¼Ì³Ð×ÔOBJECT¡£ÕâÑù£¬±£Ö¤ÁËËùÓеÄÀà¶¼¾ßÓÐһЩ»ù±¾µÄ·½·¨¡£ÀýÈçÒ»¸öString¶ÔÏóÓÐtoString()·½·¨£¬ÁíÍâÒ»¸öMath¶ÔÏ ......
ÎÄÕÂת×Ô:http://www.javaeye.com/topic/31742
---------------------------------------------------
ÂÒÂë¶ÔÓÚʹÓ÷ÇÓ¢ÓïÎÄ×Ö³ÌÐòÔ±»ù±¾ÉÏÊÇÒ»Ö±²øÈÆÔÚÉí±ßµÄÂ鷳ʣ¬Õâ¸öËÒ²±ÜÃâ²»ÁË¡£ÏÂÃæÊÇÎÒ½â¾öÂÒÂëʱºòµÄÒ»µãС¾Ñé¡£»¶ÓÖ¸Õý
Ò»¡¢±ÜÃâÂÒÂëµÄһЩעÒâµã£º
1.¾¡Á¿Ê¹ÓÃͳһµÄ±àÂ룬Èç¹ûÄãÊÇÖØÍ·¿ª·¢Ò»¸öÏ ......