블로그
- POI HSSF 데이터 타입을 String으로 받기 public String getExcelTypeData(HSSFWorkbook wb, HSSFCell cell) { SimpleDateFormat sdf = new SimpleDateFormat cellType = cell.getCellType(); String rtnData =""; switch(cellType) { case HSSFCell.CELL_TYPE_NUMERIC : if
- POI HSSF 셀타입 확인 public String getExcelType(HSSFCell cell) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd") cellType = cell.getCellType(); String rtnData =""; switch(cellType) { case HSSFCell.CELL_TYPE_NUMERIC : if
- How to check if date is valid in Java public class DateValidator { public boolean isThisDateValid(String dateToValidate, String dateFromat){ if (dateToValidate == null){ return false; } SimpleDateFormat sdf = new SimpleDateFormat(dateFromat); sdf.setLenient
- [영진전문대 컴퓨터정보계열프로그래밍전공] 10월 31일 수업내용 void run() { int i = 0; while(i < 20000) { sharedCounter.increment(); sharedCounter.decrement(); if ; try { sleep((int)(Math.random() * 2)); }catch(InterruptedException e) { } i++; } } } public class sdf