Java·ºÐ;Žë
1¡¢²»¿ÉÒÔÓÃÒ»¸ö±¾µØÀàÐÍ£¨Èçint float£©À´Ìæ»»·ºÐÍ
2¡¢ÔËÐÐʱÀàÐͼì²é£¬²»Í¬ÀàÐ͵ķºÐÍÀàÊǵȼ۵ģ¨Pair<String>ÓëPair<Employee>ÊÇÊôÓÚͬһ¸öÀàÐÍPair£©£¬
ÕâÒ»µãÒªÌرð×¢Ò⣬¼´Èç¹ûa instanceof Pair<String>==trueµÄ»°£¬²¢²»´ú±ía.getFirst()µÄ·µ»ØÖµÊÇÒ»¸öStringÀàÐÍ
3¡¢·ºÐÍÀ಻¿ÉÒԼ̳ÐExceptionÀ࣬¼´·ºÐÍÀ಻¿ÉÒÔ×÷ΪÒì³£±»Å׳ö
4¡¢²»¿ÉÒÔ¶¨Òå·ºÐÍÊý×é
5¡¢²»¿ÉÒÔÓ÷ºÐ͹¹Ôì¶ÔÏ󣬼´first = new T(); ÊÇ´íÎóµÄ
6¡¢ÔÚstatic·½·¨Öв»¿ÉÒÔʹÓ÷ºÐÍ£¬·ºÐͱäÁ¿Ò²²»¿ÉÒÔÓÃstatic¹Ø¼ü×ÖÀ´ÐÞÊÎ
7¡¢²»ÒªÔÚ·ºÐÍÀàÖж¨Òåequals(T x)ÕâÀà·½·¨£¬ÒòΪObjectÀàÖÐÒ²ÓÐequals·½·¨£¬µ±·ºÐÍÀà±»²Á³ýºó£¬ÕâÁ½¸ö·½·¨»á³åÍ»
8¡¢¸ù¾Ýͬһ¸ö·ºÐÍÀàÑÜÉú³öÀ´µÄ¶à¸öÀàÖ®¼äûÓÐÈκιØϵ£¬²»¿ÉÒÔ»¥Ïำֵ
¼´Pair<Number> p1; Pair<Integer> p2; p1=p2; ÕâÖÖ¸³ÖµÊÇ´íÎóµÄ¡£
9¡¢Èôij¸ö·ºÐÍÀ໹ÓÐͬÃûµÄ·Ç·ºÐÍÀ࣬²»Òª»ìºÏʹÓ㬼á³ÖʹÓ÷ºÐÍÀà
Pair<Manager> managerBuddies = new Pair<Manager>(ceo, cfo);
Pair rawBuddies = managerBuddies; ÕâÀï±àÒëÆ÷²»»á±¨´í£¬µ«´æÔÚ×ÅÑÏÖصÄÔËÐÐʱ´íÎóÒþ»¼
Ïà¹ØÎĵµ£º
package demo;
class TestA{
public int devide(int x,int y) throws ArithmeticException , DevideByMinusException{
if(y<0)
throw new DevideByMinusException("±»³ýÊýΪ¸º",y);
int result=x/y;
return result;
}
}
public class TestE ......
0
Java WebÓ¦ÓÃÔÚARM Linuxƽ̨ÉϵÄʵÏÖ
Posted in ˶²©ÂÛÎÄ at ʮһÔ 12th, 2009 / No Comments »
Íõ࣬ÖÜÀ¼½£¬ÁõÀñ¶«£¬½âÔÆÏö
(À¥Ã÷Àí¹¤´óѧÐÅÏ¢¹¤³ÌÓë×Ô¶¯»¯Ñ§Ôº£¬ÔÆÄÏÀ¥Ã÷650051)
1ÒýÑÔ
Ëæ×ÅÍøÂçÐÅÏ¢¼¼ÊõµÄ·ÉËÙ·¢Õ¹£¬Web¼¼ÊõÔ½À´Ô½¶àµÄÓÃÔÚ¿ØÖÆÁìÓò£¬¿Í»§¶ËÖ»ÐèÁ¬½ÓÒÔÌ«Íø£¬È¡µÃ·ÃÎÊȨÏÞ£¬¾Í¿ÉÒÔ·Ã ......
ÔÚÓ¦Óÿª·¢ÖУ¬¾³£ÐèҪһЩÖÜÆÚÐԵIJÙ×÷£¬±ÈÈçÿ5·ÖÖÓÖ´ÐÐijһ²Ù×÷µÈ¡£ÔÚWEBÏîÄ¿ÖпÉÄÜÐèҪÿ¸ôÒ»¶Îʱ¼ä×Ô¶¯Éú³É¾²Ì¬Ò³£¬×Ô¶¯¼ì²âÊÇ·ñÓÐÐÂÓʼþ£¬¶¨Ê±×Ô¶¯±¸·ÝÎļþµÈ²Ù×÷¡£ÕâЩ¶¼¿ÉÒÔͨ¹ý¶¨Ê±Æ÷TimerÀ´½â¾ö¡£
ÕâÀï½öÌṩ¶¨Ê±Æ÷µÄ²¿·Ö·½·¨ºÍ˵Ã÷£¬¾²Ì¬Ò³Éú³ÉµÈ²Ù×÷¶ÁÕß¿ÉÒÔͨ¹ýÏà¹Ø·½·¨×ÔÐнâ¾ö¡£
¡£¡£¡£°Ù¶È¿Õ¼äÌù´úÂë×ÜÊ ......
win7£¨windows7£©ÏÂjava»·¾³±äÁ¿ÅäÖ÷½·¨
windows7ÏÂjava»·¾³±äÁ¿ÅäÖ÷½·¨£º
1.ÓÃÊó±êÓÒ»÷“ÎҵĵçÄÔ”->ÊôÐÔ
Ñ¡Ôñ×ó±ßµ¼º½µÄ“¸ß¼¶ÏµÍ³ÉèÖÔѡÏȻºóÕâ»ØÊìϤÁË°É£¿
¼ÌÐøÑ¡ÔñÓÒϽǵÄ& ......
ÔÚ´¦Àí¼à²âÊý¾Ýʵʱ¼Èëʱ,ÐèÒªÌṩµ±Ç°°à´ÎÐÅÏ¢{´ó°×°à,Сҹ°à,´óÒ¹°à}£¬°à´ÎÐÅÏ¢ÊǸù¾Ý¸ø¶¨Ê±¼ä¶Î½øÐÐÉ趨ÀàËÆ{{"8:00","16:00"},{"16:00","00:00"},{"00:00","8:00"}}
´¦Àí°ì·¨
· È¡µ±Ç°Ê±¼ä¡¢×ª»»ÑéÖ¤Æðʼ¡¢½áÊøʱ¼ä½øÐбȽϡ£
Ïà¹Ø´úÂë
/**
* ʱ¼ä¶Î²âÊÔ
......