易截截图软件、单文件、免安装、纯绿色、仅160KB

JAVA报表两日期间月,周,日计算

 //计算天数
 public List day(String dates,String datee) throws ParseException{
  List dayls=new ArrayList();
  // 字符串转换成日期
  SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
  Date startDate = format.parse(dates);
  Calendar startTime = Calendar.getInstance();
  startTime.clear();
  startTime.setTime(startDate);
  int startYear = startTime.get(Calendar.YEAR);
  int startMonth = startTime.get(Calendar.MONTH);
  int startDay = startTime.get(Calendar.DAY_OF_MONTH);
  Date endDate = format.parse(datee);
  Calendar endTime = Calendar.getInstance();
  endTime.clear();
  endTime.setTime(endDate);
  int endYear = endTime.get(Calendar.YEAR);
  int endMonth = endTime.get(Calendar.MONTH);
  int endDay = endTime.get(Calendar.DAY_OF_MONTH);
  int count = 0;
  for (int x = startYear; x <= endYear; x++) {
   // 罗马历法产生年份公元1582年
   int gregorianCutoverYear = 1582;
   // 判断是否是闰年
   boolean isLeapYear = x >= gregorianCutoverYear ? ((x % 4 == 0) && ((x % 100 != 0) || (x % 400 == 0)))
     : (x % 4 == 0);
   // 获取开始月的最大天数;大月是1,3,5,7,8,10,12;小月是4,6,9,11;特殊月是2
   int max = 0;
   if (startMonth == 1) {
    if (isLeapYear) {
     max = 29;
    }
    if (!isLeapYear) {
     max = 28;
    }
   }
   if (startMonth == 3 || startMonth == 5 || startMonth == 8
     || startMonth == 10) {
    max = 30;
   }
   if (startMo


相关文档:

JAVA自学路线图

 
JAVA自学路线图
  
JAVA自学之路 二:JAVA自学路线图
[转载请注明出处:http://www.bjsxt.com/zixue/zixuezhilu_1.html]
有不少的同学发信给我,和我探讨java的自学过程应该是什么样的,毕竟有很多人因为各种各样的原因不能参加培训。我试着给出自己的见解,抛砖引玉吧。
这个路线图是给那些为了就业 ......

java调用native2ascii.exe

 本文来自CSDN博客:http://blog.csdn.net/xyk0830/archive/2007/11/06/1869638.aspx
命令行格式:
native2ascii.exe -[options] [inputfile [outputfile]]
其中:
  -[options]表示命令开关,有两个选项可供选择:
    -reverse:用Latin-1或Unicode编码把文件转换成本地编码格式
    -encoding ......

几种读取属性文件的JAVA实现方式

 
1.使用java.util.Properties类的load()方法
InputStream in = lnew BufferedInputStream(new FileInputStream(name));
  Properties p = new Properties();
  p.load(in);
2.使用java.util.ResourceBundle类的getBundle()方法  
ResourceBundle rb = ResourceBundle.getBundle(name, Locale.getDefault ......

Myeclipse 8 keygen java source

public class MyEclipseGen {
private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 of the DMCA, penalties range up ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号