|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果你学习的是市场营销,是销售,也许参加大课堂的学习会更合适,因为你的工作能力中有个基础就是搭建自己的人脉,importjava.util.*;
importcom.unigroup2000.Global;
importjava.io.*;
importjavax.servlet.http.*;
importjava.text.*;
/**
*<p>Title:</p>
*<p>Description:</p>
*<p>Copyright:Copyright(c)2004</p>
*<p>Company:</p>
*@authornotattributable
*@version1.0
*/
publicclassWeekCalendar{
publicWeekCalendar()throwsIOException{
}
publicCalendarCalendarSetTime(StringsCurrDate){
CalendaroCalendar=Calendar.getInstance();
DateoDate=newDate();
SimpleDateFormatsdf=newSimpleDateFormat("yyyy-MM-dd");
if(!sCurrDate.equals("")&&sCurrDate!=null){
try{
oCalendar.setTime(sdf.parse(sCurrDate));
}catch(Exceptionex){
ex.printStackTrace(System.err);
System.out.println("日期格局转换毛病:="+sCurrDate);
}
}
else
oCalendar.setTime(oDate);
returnoCalendar;
}
publicListCalendar(HttpServletRequestrequest,HttpServletResponseresponse,StringsCurrDate){
String[]oneWeekDay={"日曜日","礼拜一","礼拜二","礼拜三","木曜日","礼拜五","礼拜六"};
CalendaroCal=null;
StringLoopDate="",Flag="";
intiweek=0,iCurrWeek=0;
DateoDate=newDate();
oCal=CalendarSetTime(sCurrDate);//设置工夫
iweek=oCal.get(Calendar.DAY_OF_WEEK)-1;
HashMapoHashMap=newHashMap();;
StringDataSet[]=null;
ListDayAndWeek=newArrayList();
for(inti=iweek;i>0;i--){
oCal.add(Calendar.DATE,-i);
LoopDate=oCal.get(Calendar.YEAR)+"-"+(oCal.get(Calendar.MONTH)+1)+"-"+oCal.get(Calendar.DATE);
oCal=CalendarSetTime(sCurrDate);//重置工夫
DataSet=newString[2];
DataSet[0]=LoopDate;
DataSet[1]=oneWeekDay[(iCurrWeek++)];
DayAndWeek.add(DataSet);
}
for(inti=0;i<7-iweek;i++){
oCal.add(Calendar.DATE,i);
LoopDate=oCal.get(Calendar.YEAR)+"-"+(oCal.get(Calendar.MONTH)+1)+"-"+oCal.get(Calendar.DATE);
oCal=CalendarSetTime(sCurrDate);
DataSet=newString[2];
DataSet[0]=LoopDate;
DataSet[1]=oneWeekDay[(iCurrWeek++)];
DayAndWeek.add(DataSet);
}
returnDayAndWeek;
}
从一个编程语言的普及程度来将,一个好的IDE是至关中要的,而现在的java的IDE虽然已经很好了,但是和.net比起来还是稍微差一些的,这是个客观事实。java要想普及的更好。DE是必须加以改进的。 |
|