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

ÎÒÓÃjavaдµÄÈÕÀú

public class Calendar {
 /**
  * Ö±½ÓµÄ¿ÉÒԲ鿴Ч¹û
  * @param args
  */
 public static void main(String[] args) {
  
  int year=input.nextInt();//Äê
  int month=input.nextInt();//ÔÂ
  int yearday=0;//Äê×ÜÌìÊý
  //¼ÆËã´Ó1900Äêµ½½ñÄêÖ®¼äµÄʱ¼ä
  for (int i = 1900; i < year; i++) {
   //¼ÆËãÈòÄêµÄÌõ¼þ
   if(i%4==0&&i%100!=0||i%400==0){
    yearday=yearday+366;
   }else{
    yearday=yearday+365;
   }
  }
  int day=0;//Ò»¸öÔµÄÌìÊý
  int monthday=0;//½ñÄêÒ»Ôµ½±¾ÔµÄÌìÊý
  int sumday=0;//¾àÀë1900ÄêµÄ×ÜÌìÊý
  //¼ÆËã½ñÄêÒ»Ôµ½±¾ÔµÄÌìÊý
  for (int i = 1; i <=month; i++) {
   switch(i){
   case 1:
   case 3:
   case 5:
   case 7:
   case 8:
   case 10:
   case 12:
    day=31;
    break;
   case 2:
    if(year%4==0&&year%100!=0||year%400==0){
     day=29;
     break;
    }else{
     day=28;
     break;
    }
    default:
     day=30;
     break;
    }
   if(i<month){
      monthday=monthday+day; 
   }
  }
  sumday=yearday+monthday;
  
  int week;//ÐÇÆÚ
  int temp=sumday%7+1;
  if(temp==7){
   week=0;
  }else{
   week=temp;
  }
  System.out.println("ÐÇÆÚÌì\tÐ


Ïà¹ØÎĵµ£º

Java 1.5ÐÂÌØÐÔ¼ò½é

“JDK1.5”µÄÒ»¸öÖØÒªÖ÷Ìâ¾ÍÊÇͨ¹ýÐÂÔöһЩÌØÐÔÀ´¼ò»¯¿ª·¢£¬ÕâЩÌØÐÔ°üÀ¨·ºÐÍ£¬for-each¡¡Ñ­»·£¬×Ô¶¯×°°ü/²ð°ü£¬Ã¶¾Ù£¬¿É±ä²ÎÊý,¡¡¾²Ì¬µ¼Èë¡¡¡£Ê¹ÓÃÕâЩÌØÐÔÓÐÖúÓÚÎÒÃDZàд¸ü¼ÓÇåÎú£¬¾«º·£¬°²È«µÄ´úÂë¡£
Ò»£® Ê×Ïȼòµ¥½éÉÜһϸ÷ÖÖÌØÐÔ¼°ÆäʹÓÃ
1.·ºÐÍ(Generic)
C++ͨ¹ýÄ£°å¼¼Êõ¿ÉÒÔÖ¸¶¨¼¯ºÏµÄÔªËØÀàÐÍ£¬¶øJ ......

oracleÊý¾Ý¿â×Ö¶ÎÀàÐͼ°ÆäÓëJava.sql.TypesµÄ¶ÔÓ¦

×Ö·ûÀàÐÍ£º
CHAR(size)£º¹Ì¶¨³¤¶È×Ö·û´®£¬×î´ó³¤¶È2000 bytes
VARCHAR2(size)£º¿É±ä³¤¶ÈµÄ×Ö·û´®£¬×î´ó³¤¶È4000 bytes£¬¿É×öË÷ÒýµÄ×î´ó³¤¶È749
NCHAR(size)£º¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ¹Ì¶¨³¤¶È×Ö·û´®£¬×î´ó³¤¶È2000 bytes
NVARCHAR2(size)£º¸ù¾Ý×Ö·û¼¯¶ø¶¨µÄ¿É±ä³¤¶È×Ö·û´®£¬×î´ó³¤¶È4000 byte
LONG£º±ä³¤µÄ×Ö·û´®£¬×î´ó³¤¶ÈÏÞ ......

javaÖеÄSynthÍâ¹Û

 javaÖеÄSynthÍâ¹Û 
   Synth£¬ËüÊÇÒ»¸öÍêÕûµÄÍâ¹Û£¬¶ø²»ÊÇÒ»¸öÖ÷Ì⣬ËüÕë¶ÔµÄ²¢²»ÊdzÌÐòÔ±£¬¶øÊǽçÃæÉè¼ÆÈËÔ±£¬ÈÃËûÃDz»±ØÕÆÎÕJava ÖªÊ¶±ãÄܹ»½øÐÐÏàÓ¦½çÃæµÄÑ¡Ôñ¶¨ÖÆ¡£²ÉÓÃÁËSynth ºó£¬ÎÒÃDz»ÄÜ´ÓÏÖÓÐÍâ¹Û»òÖ÷ÌâÅÉÉú×ÓÀà¡¢ÐÞ¸Ä×ÖÌå»òÑÕÉ«£¬¶øÊÇͨ¹ýתÔز»Í¬µÄXML ÎļþÒÔ´ïµ½¶Ô ......

Java¼¸¸ö³£ÓõIJ¼¾Ö¹ÜÀíÆ÷Àà

Java¼¸¸ö³£ÓõIJ¼¾Ö¹ÜÀíÆ÷Àà:
°ü
Àà
Ìصã
java.awt
CardLayout
½«×é¼þÏó¿¨Æ¬Ò»Ñù·ÅÖÃÔÚÈÝÆ÷ÖУ¬ÔÚijһʱ¿ÌÖ»ÓÐÒ»¸ö×é¼þ¿É¼û
java.awt
FlowLayout
½«×é¼þ°´´Ó×óµ½ÓÒ¶øºó´ÓÉϵ½ÏµÄ˳ÐòÒÀ´ÎÅÅÁУ¬Ò»Ðв»ÄÜ·ÅÍêÔòÕÛµ½ÏÂÒ»ÐмÌÐø·ÅÖÃ
java.awt
GridLayout
ÐÎËÆÒ»¸öÎÞ¿òÏߵıí¸ñ£¬Ã¿¸öµ¥Ôª¸ñÖзÅÒ»¸ö×é¼þ
java.awt ......

˵µØµÀµÄJavaÓïÑÔ

ʹÓÃÒ»ÖÖ³ÌÐòÉè¼ÆÓïÑÔ£¬¾ÍÓ¦¸ÃרҵµØʹÓÃËü¡£±¾ÎÄÊÇIBM developerWorksÖеÄһƪÎÄÕ£¬ËüÃèÊöµÄ¶¼ÊÇJava±à³ÌÖеÄϸ½ÚÎÊÌ⣬¾¡¹ÜÈç´Ë£¬»¹ÊÇÖµµÃ´ó¼ÒÍæζһ·¬£¬ÖÁÉÙÎÒ×÷ΪһÃûÀÏÄñ»¹ÊÇ´ÓÖÐÊÜÒæÁË¡£(2010.02.09×îºó¸üÐÂ)
    ѧϰһÖÖеijÌÐòÉè¼ÆÓïÑÔ±ÈѧϰһÖÖеĿÚÍ·ÓïÑÔÒªÈÝÒס£µ«ÊÇ£¬ÔÚÕâÁ½ÖÖŬÁ¦ÖУ¬¶¼Ð ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ