写了一个java的统计考勤 如何和给他设置一个配置文件并且可以通过配置文件修改路径呢
 import java.io.File;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import jxl.write.Label;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;





public class zijixiedefangfa {
    public static void main(String[] args) throws BiffException, IOException, ParseException {
        String fileName = "D://Io//jisuan.xls"; // Excel文件所在路径  
        File file = new File(fileName); // 创建文件对象  
        Workbook wb = Workbook.getWorkbook(file); // 从文件流中获取Excel工作区对象(WorkBook)  
        Sheet sheet = wb.getSheet(0); // 从工作区中取得页(Sheet)

        int n =0;
        Date min = null;

        String firm = ""; //定义公司
        String name = ""; //定义姓名
        String day = ""; //定义日期
        String time_start = ""; //定义最早时间
        String time_end = "";  //定义最晚时间

        List shuju = new ArrayList();   //定义总的传入集合
        List bumen = new ArrayList();  //部门
        List xingming = new ArrayList();   //姓名
        List date = new ArrayList();   //日期
        List earlyTime = new ArrayList();  //上班时间
        List endTime = new ArrayList<Date>();    //下班时间
        List workTime = new ArrayList();  //上班时间
        List chidao  = new ArrayList();  //迟到
        List zaotui  = new ArrayList();   //早退

        //最晚上班时间
        SimpleDateFormat df = new SimpleDateFormat("HH:mm:ss");
        Date biaozhun  = df.parse("10:00:00");

    while(n<sheet.getRows()){
        //这一天的最早上班时间
        firm = sheet.getCell(0,shuju.size()).getContents();
        name = sheet.getCell(1,shuju.size()).getContents();
        day = sheet.getCell(2,shuju.size()).getContents();
        time_start = sheet.getCell(3,shuju.size()).getContents();

        bumen.add(sheet.getCell(0,shuju.size()).getContents());
        xingming.add(sheet.getCell(1,shuju.size()).getContents());
        date.add(sheet.getCell(2,shuju.size()).getContents());
        earlyTime.add(sheet.getCell(3,shuju.size()).getContents());
        //判断是否迟到        
        if(df.parse(sheet.getCell(3,shuju.size()).getContents()).getTime()>biaozhun.getTime()){
            chidao.add("迟到");
        }else{
            chidao.add("");
                    }

    while(n<sheet.getRows()){   
        //如果前三条数据一样的话 说明是同一天
        if(sheet.getCell(0,n).getContents().equals(firm) && sheet.getCell(1,n).getContents().equals(name) && sheet.getCell(2,n).getContents().equals(day) ){
            shuju.add(sheet.getCell(3,n).getContents());
        }else{
            break;
        }
        n++;
        }   
        //当前三条数据不一样时 退出当前while循环 数组长度减1的下标就是下班时间
        endTime.add(sheet.getCell(3,shuju.size()-1).getContents());
        }

        for (int i = 0; i < earlyTime.size(); i++) {
        try {
        workTime.add((df.parse((String) endTime.get(i)).getTime()-df.parse((String) earlyTime.get(i)).getTime())/3600000+"小时");
        //判断是否早退
        if((df.parse((String) endTime.get(i)).getTime()-df.parse((String) earlyTime.get(i)).getTime())/3600000>=8){
        zaotui.add("");
        }else{
        zaotui.add("早退");
        }
        } catch (ParseException e) {
        e.printStackTrace();
        }
        }
        //关闭读取流
        wb.close();


        try {
        //打开写入流 
        WritableWorkbook book = Workbook.createWorkbook(new File("D://Io//stu.xls"));  
        // 生成名为“sheet1”的工作表,参数0表示这是第一页  
        WritableSheet kaoqin = book.createSheet("kaoqin", 0);

        //写入部门 
        for (int i = 0; i < bumen.size(); i++) {
        Label label = new Label(0, i,  (String) bumen.get(i));  
        // 将定义好的单元格添加到工作表中  
        kaoqin.addCell(label); 
        } 

        //写入姓名
        for (int i = 0; i < xingming.size(); i++) {
        Label label = new Label(1, i,  (String) xingming.get(i));   
        kaoqin.addCell(label); 
        } 

        //写入日期
        for (int i = 0; i < date.size(); i++) {
        Label label = new Label(2, i,  (String) date.get(i));    
        kaoqin.addCell(label); 
        } 

        //写入上班时间
        for (int i = 0; i < earlyTime.size(); i++) {
        Label label = new Label(3, i,  (String) earlyTime.get(i));  
        kaoqin.addCell(label); 
        } 


        //写入下班时间
        for (int i = 0; i < endTime.size(); i++) {
        Label label = new Label(4, i,  (String) endTime.get(i));   
        kaoqin.addCell(label); 
        } 

        //写入总共上班时间
        for (int i = 0; i < workTime.size(); i++) {
        Label label = new Label(5, i,   (String) workTime.get(i)) ;  
        kaoqin.addCell(label); 
        } 

        //加入迟到

        for (int i = 0; i < chidao.size(); i++) {
        Label label = new Label(6, i,   (String) chidao.get(i)) ;  
        kaoqin.addCell(label); 
        } 

        //写入早退
        for (int i = 0; i < zaotui.size(); i++) {
        Label label = new Label(7, i,   (String) zaotui.get(i)) ;  
        kaoqin.addCell(label); 
        } 

        book.write();    //执行写入操作
        book.close();     //关闭流

        }catch (Exception e) {
        System.out.println(e);  

    }
}
}

图片说明
图片说明

需求是想添加一个配置文件 通过配置文件来修改java文件中的读取路径 这个该怎么做啊

2个回答

String fileName = "D://Io//jisuan.xls"; // Excel文件所在路径 这行代码单独拉出来做一个带参数的方法,每次从本地的某个配置文件读取文件内容就行了,然后就可以通过修改配置文件修改每次要创建的东西了。

通过Properties.load方法加载配置文件,然后路径值存放在配置文件内

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
JAVA Web员工考勤统计

前台有个打卡的页面,员工输入编号之后,会根据这个Servlet判断和赋值,然后存入数据库,但是项目有个要求是显示一个员工一个月的所有的迟到,旷工次数,就统计这块不会做,想请大家帮帮忙。数据库的信息有截图,但是不知道怎么传上来。。。 package com.gxa.servlet.action; import java.util.Date; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.gxa.service.RecruitService; import com.gxa.util.AplException; public class AttendanceCheck extends HttpServlet { private static final long serialVersionUID = 1L; public void doGet(HttpServletRequest req, HttpServletResponse resp) { doPost(req, resp); } @SuppressWarnings("deprecation") public void doPost(HttpServletRequest req, HttpServletResponse resp){ try { int em_code = Integer.parseInt(req.getParameter("em_code")); RecruitService service = new RecruitService(); Date time = new Date(System.currentTimeMillis()); if ( time.getHours() > 9 && time.getHours()<12 ) { int wo_late = 1; String timemonth = time.getMonth() + 1 + "月份"; int wo_truancy = 0; service.check(em_code, timemonth, wo_late, wo_truancy); req.getRequestDispatcher("/login1.jsp").forward(req, resp); } else if (time.getHours() > 12) { int wo_late = 0; String timemonth = time.getMonth()+ 1 + "月份"; int wo_truancy = 1; service.check(em_code, timemonth, wo_late, wo_truancy); req.getRequestDispatcher("/login1.jsp").forward(req, resp); } else { int wo_late = 0; String timemonth = time.getMonth()+ 1 + "月份"; int wo_truancy = 0; service.check(em_code, timemonth, wo_late, wo_truancy); req.getRequestDispatcher("/login1.jsp").forward(req, resp); } } catch (Exception e) { new AplException("",e).printStackTrace(req,resp,"/err.jsp"); } } }

java tcp实现模拟考勤打卡代码怎么写

求大神帮我写一个java tcp模拟考勤打卡的代码,主要需求有,得到员工名字,工号,和打卡时间

请问一个一个java写的计算考勤的系统 有个小逻辑问题

``` import java.io.File; import java.io.IOException; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import jxl.Cell; import jxl.Sheet; import jxl.Workbook; import jxl.read.biff.BiffException; public class daochudaoexcel { public static void main(String[] args) throws BiffException, IOException, ParseException { String fileName = "D://Io//jisuan.xls"; // Excel文件所在路径 File file = new File(fileName); // 创建文件对象 Workbook wb = Workbook.getWorkbook(file); // 从文件流中获取Excel工作区对象(WorkBook) Sheet sheet = wb.getSheet(0); // 从工作区中取得页(Sheet) int n =0; int j =0; int f = 0; Date max = null; String Stringmax = null; String Stringmin = null; String zgs = "总公司"; DateFormat df = new SimpleDateFormat("HH:mm:ss"); //规定早上最晚打卡时间 Date time = df.parse("10:00:00"); while(n<sheet.getRows()){ //如果是总公司 if(sheet.getCell(0,n).getContents().equals(zgs)){ //如果姓名相等 if(sheet.getCell(1,n).getContents().equals(sheet.getCell(1,n+1).getContents())){ //如果日期相等 if(sheet.getCell(2,n).getContents().equals(sheet.getCell(2,n+1).getContents())){ //如果第n个时间小于n+1,那么将max等于n+1 if(df.parse(sheet.getCell(3,n).getContents()).getTime()<df.parse(sheet.getCell(3,n+1).getContents()).getTime() ){ max=df.parse(sheet.getCell(3,n+1).getContents()); //将max转成String Stringmax = sheet.getCell(3,n+1).getContents(); } }else { //如果日期不相等那么下个日期的第一个打卡时间 就是min Date min= df.parse(sheet.getCell(3,n+1).getContents()); //将min转为String类型 Stringmin = sheet.getCell(3,n+1).getContents(); //如果最早打卡时间大于规定早上最晚打卡时间 那么则判定为迟到 if(min.getTime()>time.getTime()){ System.err.print("迟到"); //如果上班时间大于小于八个小时 则说明早退 }else if((max.getTime()-min.getTime())/3600000<8){ System.err.print("早退"); } //输出员工上班下班时间 和上班多少小时 System.out.println(sheet.getCell(0,n).getContents()+"员工:" +sheet.getCell(1,n).getContents()+sheet.getCell(2,n+1).getContents() + " "+ "上班时间:" + Stringmin + " " + "下班时间" + Stringmax + "上班了" + " " +(max.getTime()-min.getTime())/3600000 + "个小时" ); } } } n++; } } } ``` ![图片说明](https://img-ask.csdn.net/upload/201712/06/1512530705_406705.png) ![图片说明](https://img-ask.csdn.net/upload/201712/06/1512530714_645595.png) 需求是输出这个人最早上班时间 最晚下班时间和是否迟到早退 我的逻辑是先判断第一列是不是相等 再判断第二列是否相等 直到判断到日期相等 然后遍历最大的时间替换为max 因为打卡时间是按照从早到晚排列的 到了下一天 那么下一天的第一个打卡时间是最早打卡时间 但是这样第一天的也就是表格中的第一天自动给略过了 因为第一天没有在else中判断 这个怎么解决 新手 请各位大牛帮帮忙 谢谢

java考勤系统算法问题

关于考勤算法问题,如计算迟到,早退,请假。出差等。若有可能提供示列更好 .基本要求是根据考勤机中取出的员工考勤记录如何跟已规定的班次进行对比判断是否迟到,早退 .员工有请假,出差等记录,这些情况如何处理

请教一下怎么用java做一个考勤功能?

假如有学生和管理员2个身份,我要怎么做啊 给个思路,现在的问题是 不知道是谁负责打卡 是学生自己点呢 还是管理员,还有数据库里的考勤记录是已经生成的还是说我要点击“上班"才会自动插入,那如果我们上班就是缺勤,那缺勤又怎么插入数据库?

java操作中控考勤机 获取数据

现在公司要开发一个oa关联到公司的打卡机 只要实时的获取到数据就行了 然而之前没有 接触过类似的东西 网上找了一些资料也没有什么头绪希望 有搞过得大神帮助小弟一下 或者推荐几个资料站点看看也可以

如何通过考勤日报表做出月报表

CREATE TABLE `punchCard` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userId` int(11) NOT NULL, `userName` varchar(45) DEFAULT NULL, `punchCardDate` date DEFAULT NULL,打卡日期 `startTime` time DEFAULT NULL,上班打卡时间 `endTime` time DEFAULT NULL,下班打卡时间 `state` varchar(45) DEFAULT NULL,打卡状态(0未打卡,1正常,2异常) `comment` varchar(200) DEFAULT NULL(异常描述) 上面是日报表求问如何做月报表 月报表需求是 要求显示当月每个人每天的打卡状态 求解月报表该如何设计

有个MySQL考勤表,如何统计员工上下班并且带上其他字段?

现在有个考勤表为![图片说明](https://img-ask.csdn.net/upload/201911/11/1573460543_46345.png) 我要统计出他每天的上下班打卡时间还有打卡时的照片,按每天最大最小的时间排序已经解决了,现在如何带上img_url这个字段呢。 如图显示![图片说明](https://img-ask.csdn.net/upload/201911/11/1573460823_722918.png)

求一考勤统计实现SQL代码

目前有两张表如下 ``` --用户当日班次表 IF OBJECT_ID('[userKQ]') IS NOT NULL DROP TABLE userKQ CREATE TABLE userKQ ( dateKQ VARCHAR (10), --日期 userid VARCHAR(20), --员工ID banci VARCHAR(20), --班次名称 StartTime DATETIME, --上班时间 EndTime DATETIME, --下班时间 StartTime1 DATETIME, --上班有效打卡时间开始 StartTime2 DATETIME, --上班有效打卡时间结束 EndTime1 DATETIME, --下班有效打卡时间开始 EndTime2 DATETIME --下班有效打卡时间结束 ) INSERT INTO userKQ SELECT '2017-03-02','000015','上午','1900-01-01 08:00:00.000','1900-01-01 12:00:00.000','1900-01-01 07:30:00.000','1900-01-01 08:30:00.000','1900-01-01 11:30:00.000','1900-01-01 12:30:00.000' UNION ALL SELECT '2017-03-02','000015','下午','1900-01-01 14:00:00.000','1900-01-01 18:00:00.000','1900-01-01 13:30:00.000','1900-01-01 14:30:00.000','1900-01-01 17:30:00.000','1900-01-01 18:30:00.000' UNION ALL SELECT '2017-03-02','000002','上午','1900-01-01 08:00:00.000','1900-01-01 12:00:00.000','1900-01-01 07:30:00.000','1900-01-01 08:30:00.000','1900-01-01 11:30:00.000','1900-01-01 12:30:00.000' UNION ALL SELECT '2017-03-02','000002','下午','1900-01-01 14:00:00.000','1900-01-01 18:00:00.000','1900-01-01 13:30:00.000','1900-01-01 14:30:00.000','1900-01-01 17:30:00.000','1900-01-01 18:30:00.000' UNION ALL SELECT '2017-03-02','000003','上下午','1900-01-01 09:00:00.000','1900-01-01 17:00:00.000','1900-01-01 08:30:00.000','1900-01-01 09:30:00.000','1900-01-01 16:30:00.000','1900-01-01 17:30:00.000' UNION ALL SELECT '2017-03-03','000015','上午','1900-01-01 08:00:00.000','1900-01-01 12:00:00.000','1900-01-01 07:30:00.000','1900-01-01 08:30:00.000','1900-01-01 11:30:00.000','1900-01-01 12:30:00.000' UNION ALL SELECT '2017-03-03','000015','下午','1900-01-01 14:00:00.000','1900-01-01 18:00:00.000','1900-01-01 13:30:00.000','1900-01-01 14:30:00.000','1900-01-01 17:30:00.000','1900-01-01 18:30:00.000' UNION ALL SELECT '2017-03-03','000002','上午','1900-01-01 08:00:00.000','1900-01-01 12:00:00.000','1900-01-01 07:30:00.000','1900-01-01 08:30:00.000','1900-01-01 11:30:00.000','1900-01-01 12:30:00.000' UNION ALL SELECT '2017-03-03','000002','下午','1900-01-01 14:00:00.000','1900-01-01 18:00:00.000','1900-01-01 13:30:00.000','1900-01-01 14:30:00.000','1900-01-01 17:30:00.000','1900-01-01 18:30:00.000' UNION ALL SELECT '2017-03-03','000003','上下午','1900-01-01 09:00:00.000','1900-01-01 17:00:00.000','1900-01-01 08:30:00.000','1900-01-01 09:30:00.000','1900-01-01 16:30:00.000','1900-01-01 17:30:00.000' --考勤原始记录表 IF OBJECT_ID('[checkinout]') IS NOT NULL DROP TABLE checkinout CREATE TABLE checkinout ( userid VARCHAR(20), --员工ID checktime DATETIME --打卡时间 ) INSERT INTO checkinout -- SELECT '000014','2017-03-02 07:51:00.000' UNION ALL SELECT '000015','2017-03-02 07:12:00.000' UNION ALL SELECT '000015','2017-03-02 07:33:00.000' UNION ALL SELECT '000015','2017-03-02 07:54:00.000' UNION ALL SELECT '000015','2017-03-02 12:14:00.000' UNION ALL SELECT '000015','2017-03-02 12:34:00.000' UNION ALL SELECT '000015','2017-03-02 13:50:00.000' UNION ALL --SELECT '000015','2017-03-02 18:01:00.000' UNION ALL SELECT '000002','2017-03-02 07:54:00.000' UNION ALL SELECT '000002','2017-03-02 12:14:00.000' UNION ALL --SELECT '000002','2017-03-02 13:50:00.000' UNION ALL SELECT '000002','2017-03-02 18:01:00.000' UNION ALL SELECT '000003','2017-03-02 08:30:00.000' UNION ALL SELECT '000003','2017-03-02 16:59:00.000' UNION ALL SELECT '000003','2017-03-02 17:15:00.000' UNION ALL --SELECT '000015','2017-03-02 07:34:00.000' UNION ALL SELECT '000015','2017-03-03 12:01:00.000' UNION ALL SELECT '000015','2017-03-03 13:34:00.000' UNION ALL SELECT '000015','2017-03-03 18:01:00.000' UNION ALL SELECT '000002','2017-03-03 07:54:00.000' UNION ALL SELECT '000002','2017-03-03 12:14:00.000' UNION ALL SELECT '000002','2017-03-03 13:50:00.000' UNION ALL --SELECT '000002','2017-03-03 18:01:00.000' UNION ALL SELECT '000003','2017-03-03 17:15:00.000' --在有效打卡时间段内有多次打卡记录的,取第一次打卡记录,没有打卡记录或不在有效打卡记录时间段的不记考勤,标记NULL --求实现如下效果,CHECKTIME1和CHECKTIME2分别是有效打卡时间,双手奉上仅有的10分,求高手帮忙. /* dateKQ USERID BANCI StartTime EndTime CHECKTIME1 CHECKTIME2 2017-03-02 000015 上午 1900-01-01 08:00:00.000 1900-01-01 12:00:00.000 2017-03-02 07:33:00.000 2017-03-02 12:14:00.000 2017-03-02 000015 下午 1900-01-01 14:00:00.000 1900-01-01 18:00:00.000 2017-03-02 13:50:00.000 null 2017-03-02 000002 上午 1900-01-01 08:00:00.000 1900-01-01 12:00:00.000 2017-03-02 07:54:00.000 2017-03-02 12:14:00.000 2017-03-02 000002 下午 1900-01-01 14:00:00.000 1900-01-01 18:00:00.000 null 2017-03-02 18:01:00.000 2017-03-02 000003 上下午 1900-01-01 09:00:00.000 1900-01-01 17:00:00.000 2017-03-02 08:30:00.000 2017-03-02 16:59:00.000 2017-03-03 000015 上午 1900-01-01 08:00:00.000 1900-01-01 12:00:00.000 2017-03-02 07:33:00.000 2017-03-02 12:14:00.000 2017-03-03 000015 下午 1900-01-01 14:00:00.000 1900-01-01 18:00:00.000 2017-03-02 13:50:00.000 null 2017-03-03 000002 上午 1900-01-01 08:00:00.000 1900-01-01 12:00:00.000 2017-03-03 07:54:00.000 2017-03-02 12:14:00.000 2017-03-03 000002 下午 1900-01-01 14:00:00.000 1900-01-01 18:00:00.000 2017-03-03 13:50:00.000 null 2017-03-03 000003 上下午 1900-01-01 09:00:00.000 1900-01-01 17:00:00.000 null 2017-03-03 17:15:00.000 */ ```

考勤系统中考勤排班和结果计算

对于考勤系统中的班次,出现跨天的情况,在这种情况下,如何设计表结构,如何计算考勤结果

求大神帮帮忙 java 项目中考勤怎么做

# 新手求助 因为前面时间耽误的太长了,后面的考勤感觉没有时间了。 先边做边等 !) [未完成项目](http://pan.baidu.com/s/1o6xGC9k "")

关于SQL2005学生考勤统计的问题,谢谢各位了,越详细越好

A表名称Tab_Check 包含 所有 学生名字name 考勤类型checktype (按时上课、按时下课、迟到、早退、旷课、考勤时间) 考勤时间checkdate 根据这个表建立一个视图 视图名称:view_checkview 包含 姓名name 正常出勤normal 迟到later 早退 early 旷课 absenteeism 考勤时间 checkdate 我想在视图中统计出每个同学每天的出勤状况 算法: 统计A表每个学生的suma(按时上课)sumb(按时下课)sumc(迟到)sumd(旷课) 如果suma=suamb,则正常出勤normal=suma; 如果suma>sumb,则早退early=suma-sumb; 迟到later=sumc; 旷课absenteeism=sumd 问题是 1.因为表里有很多人,我怎么按同学的名字统计每个人的出勤状况 2.考勤日期这块怎么弄啊 3.如果A表发生变化,那么视图也自动更改

关于OA考勤对相关数据进行汇总的问题

现已经将一打卡机上的数据到进了数据库,也有请假表,出差表的数据,但是打卡机存进去的数据只有打卡的记录没有未打卡记录,现需要将考勤记录,请假信息,出差信息在一个表中呈现出来 有ASP mvc 做的,现没有一点思路,求教!!!!!!!! 效果按如下样式呈现: ![图片说明](https://img-ask.csdn.net/upload/201612/14/1481701798_579227.png)

用c语言编写个学生课堂考勤系统

用C语言编写个学生课堂考勤系统,要求见图片 有没有没事做的大神来帮帮个忙![图片说明](http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/42.gif)![图片说明](http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/42.gif)![图片](https://img-ask.csdn.net/upload/201612/26/1482723574_617466.jpg)

请教一个关于oracle处理考勤记录的sql语句

有一个考勤记录表 [code="java"] create table t_kaoqin ( EMPID VARCHAR2(255 CHAR),//员工ID type VARCHAR2(255 CHAR),//旷工、事假、病假、婚假 EMPCODE VARCHAR2(255 CHAR),//员工编号 DAYS NUMBER,//天数 TIME DATE,//旷工(事假、病假、婚假)时间, EMPNAME VARCHAR2(255 CHAR),//姓名 POST VARCHAR2(255 CHAR),//职位 DEPT VARCHAR2(255 CHAR),//部门 ) [/code] 需要实现一个查询效果如下的sql,请问数据库高手们,这个sql应该如何取实现 编号 姓名 部门 职位 月份 旷工天数 事假天数 病假天数 婚假天数 001 张三 财务部 经理 2011-02 1 0 0 0 001 张三 财务部 经理 2011-05 0 2 0 0 002 李四 人事部 经理 2011-03 0 0 1 0

计算考勤迟到和早退次数

有一张表,怎么算11月份这两个人的迟到次数和早退次数,早9晚5,用java或mysql实现 员工id 上班时间 下班时间 是否加班 1是0否 empId starttime endtime isaddwork 1001 2014-11-12 08:50:43 2014-11-12 18:10:43 1 1001 2014-11-13 08:50:43 2014-11-13 17:50:43 0 1002 2014-11-12 09:10:43 2014-11-12 18:04:43 1 1002 2014-11-13 08:50:43 2014-11-13 18:10:43 0 1001 2014-11-14 08:50:43 2014-11-14 18:10:43 1 1001 2014-11-15 08:50:43 2014-11-15 17:50:43 0 1002 2014-11-14 09:10:43 2014-11-14 18:04:43 1 1002 2014-11-15 08:50:43 2014-11-15 18:10:43 0

获取CSV文件(考勤信息)内容放入集合,怎么获取集合中的每人每天的最早和最晚时间。求大神解决。

> List<XXattendance> dkinfos = new ArrayList<XXattendance>();//保存读取csv得到的数据 Map<String, List<XXattendance>> map = new HashMap<String, List<XXattendance>>();//分组统计的map集合 public void generic(){ String sbip = null; List<XXattendance> mapDkinfos = new ArrayList<XXattendance>();//map集合中每组ip的对应的对象集合 BufferedReader reader = null; //读写csv数据到list(dkinfos)集合中 try { reader = new BufferedReader(new FileReader("C:\\Users\\Lollipop\\Desktop\\考勤信息.CSV"));//换成你的文件名 String line = null; while((line=reader.readLine())!=null){ String data[] = line.split(",");//CSV格式文件为逗号分隔符文件,这里根据逗号切分 XXattendance dkinfo = new XXattendance(); dkinfo.setName(data[1]); dkinfo.setN_id(data[2]); dkinfo.setDate(data[3]); dkinfos.add(dkinfo); // System.out.println(data[0]+","+data[1]); // System.out.println(dkinfo.getName()+dkinfo.getN_id()+dkinfo.getDate()); } //遍历集合,将数据分组存入map集合 for(XXattendance dkinfo : dkinfos){ sbip = dkinfo.getN_id(); sbip = dkinfo.getDate(); mapDkinfos = map.get(sbip);//获取对应sbip的集合,第一次获取时为空 if(mapDkinfos == null){//这里如果不进行为空判断,会报空指针异常 mapDkinfos = new ArrayList<XXattendance>(); } mapDkinfos.add(dkinfo);//将新添加的对象加入到对应的sbip的对象集合 map.put(sbip, mapDkinfos); //将每次新添加对象后的对象集合存入对应map中 } Iterator<XXattendance> iter = dkinfos.iterator(); //遍历map集合 for (Map.Entry<String, List<XXattendance>> entry : map.entrySet()) { // System.out.println("考勤号: " + entry.getKey() + "打卡次数:" + entry.getValue().size()); } } catch (Exception e) { e.printStackTrace(); } finally{ try { reader.close(); dkinfos.clear(); map.clear(); mapDkinfos.clear(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } SCV数据: "部门","姓名","考勤号码","日期时间","机器号","编号","比对方式","卡号" ,"王","005","2017/5/2 9:06:13","1","","指纹","" ,"王","005","2017/5/2 10:35:04","1","","指纹","" ,"王","005","2017/5/2 19:21:28","1","","指纹","" ,"王","005","2017/5/2 19:22:43","1","","指纹","" ,"王","005","2017/5/3 13:58:49","1","","密码","" ,"王","005","2017/5/3 14:01:46","1","","密码","" ,"王","005","2017/5/3 14:10:11","1","","密码","" ,"王","005","2017/5/3 16:58:06","1","","指纹","" ,"王","005","2017/5/4 8:57:29","1","","指纹","" ,"王","005","2017/5/4 9:53:30","1","","密码","" ,"王","005","2017/5/4 11:03:16","1","","指纹","" ,"王","005","2017/5/4 12:29:13","1","","指纹","" ,"王","005","2017/5/4 13:58:32","1","","指纹","" ,"王","005","2017/5/4 14:24:46","1","","指纹","" ,"王","005","2017/5/4 14:49:02","1","","指纹","" ,"王","005","2017/5/4 16:22:15","1","","指纹","" ,"王","005","2017/5/4 18:10:31","1","","指纹","" ,"王","005","2017/5/5 8:53:24","1","","指纹","" ,"王","005","2017/5/5 9:21:41","1","","指纹","" ,"王","005","2017/5/5 11:30:13","1","","密码","" ,"王","005","2017/5/5 12:59:00","1","","指纹","" ,"王","005","2017/5/5 13:01:05","1","","密码","" ,"王","005","2017/5/5 13:48:33","1","","指纹","" ,"王","005","2017/5/5 15:38:59","1","","指纹","" ,"王","005","2017/5/5 18:03:22","1","","指纹","" ,"王","005","2017/5/8 10:11:59","1","","指纹","" ,"王","005","2017/5/8 10:36:55","1","","指纹","" ,"王","005","2017/5/8 11:34:26","1","","指纹","" ,"王","005","2017/5/8 11:46:22","1","","指纹","" ,"王","005","2017/5/8 13:01:05","1","","指纹","" ,"王","005","2017/5/8 13:42:16","1","","指纹","" ,"王","005","2017/5/8 15:41:08","1","","指纹","" ,"王","005","2017/5/8 15:44:01","1","","指纹","" ,"王","005","2017/5/8 18:06:13","1","","指纹","" ,"王","005","2017/5/8 18:10:54","1","","指纹","" ,"王","005","2017/5/9 9:02:09","1","","指纹","" ,"王","005","2017/5/9 10:45:04","1","","指纹","" ,"王","005","2017/5/9 15:54:49","1","","指纹","" ,"王","005","2017/5/9 16:21:58","1","","指纹","" ,"王","005","2017/5/12 8:43:06","1","","指纹","" ,"王","005","2017/5/15 8:58:31","1","","指纹","" ,"王","005","2017/5/15 9:07:21","1","","指纹","" ,"王","005","2017/5/15 13:47:58","1","","指纹","" ,"李","007","2017/5/3 18:15:51","1","","指纹","" ,"李","007","2017/5/4 8:46:05","1","","指纹","" ,"李","007","2017/5/4 8:59:47","1","","指纹","" ,"李","007","2017/5/4 11:13:44","1","","指纹","" ,"李","007","2017/5/4 12:08:21","1","","指纹","" ,"李","007","2017/5/4 13:27:26","1","","指纹","" ,"李","007","2017/5/4 15:32:24","1","","指纹","" ,"李","007","2017/5/4 16:50:40","1","","指纹","" ,"李","007","2017/5/4 18:10:17","1","","指纹","" ,"李","007","2017/5/5 8:45:16","1","","指纹","" ,"李","007","2017/5/5 8:55:33","1","","指纹","" ,"李","007","2017/5/5 8:56:18","1","","指纹","" ,"李","007","2017/5/5 16:38:41","1","","指纹","" ,"李","007","2017/5/5 18:03:41","1","","指纹","" ,"李","007","2017/5/8 8:49:04","1","","指纹","" ,"李","007","2017/5/8 8:50:14","1","","指纹","" ,"李","007","2017/5/8 10:03:45","1","","指纹","" ,"李","007","2017/5/8 12:18:39","1","","指纹","" ,"李","007","2017/5/8 12:27:55","1","","指纹","" ,"李","007","2017/5/8 14:02:19","1","","指纹","" ,"李","007","2017/5/8 14:33:45","1","","指纹","" ,"李","007","2017/5/8 18:06:19","1","","指纹","" ,"李","007","2017/5/8 18:18:26","1","","指纹","" ,"李","007","2017/5/9 8:48:39","1","","指纹","" ,"李","007","2017/5/9 8:49:53","1","","指纹","" ,"李","007","2017/5/9 13:33:35","1","","指纹","" ,"李","007","2017/5/9 15:00:58","1","","指纹","" ,"李","007","2017/5/9 17:40:10","1","","指纹","" ,"李","007","2017/5/9 18:07:28","1","","指纹","" ,"李","007","2017/5/12 8:55:34","1","","指纹","" ,"李","007","2017/5/12 8:58:09","1","","指纹","" ,"李","007","2017/5/12 11:11:20","1","","指纹","" ,"李","007","2017/5/12 15:09:12","1","","指纹","" ,"李","007","2017/5/12 16:27:09","1","","指纹","" ,"李","007","2017/5/12 17:56:23","1","","指纹","" ,"李","007","2017/5/12 18:10:22","1","","指纹","" ,"李","007","2017/5/15 8:50:59","1","","指纹","" ,"李","007","2017/5/15 9:06:47","1","","指纹","" ,"张","008","2017/5/2 9:13:02","1","","指纹","" ,"张","008","2017/5/2 16:28:27","1","","指纹","" ,"张","008","2017/5/2 17:38:45","1","","指纹","" ,"张","008","2017/5/3 9:04:40","1","","指纹","" ,"张","008","2017/5/3 9:08:44","1","","指纹","" ,"张","008","2017/5/3 13:56:29","1","","指纹","" ,"张","008","2017/5/4 10:40:16","1","","指纹","" ,"张","008","2017/5/4 11:56:22","1","","指纹","" ,"张","008","2017/5/4 13:17:10","1","","指纹","" ,"张","008","2017/5/4 13:34:48","1","","密码","" ,"张","008","2017/5/4 15:34:28","1","","密码","" ,"张","008","2017/5/4 15:49:44","1","","指纹","" ,"张","008","2017/5/5 10:58:58","1","","指纹","" ,"张","008","2017/5/5 12:34:57","1","","密码","" ,"张","008","2017/5/5 16:45:05","1","","指纹","" ,"张","008","2017/5/8 10:17:23","1","","指纹","" ,"张","008","2017/5/8 10:23:07","1","","指纹","" ,"张","008","2017/5/8 12:10:50","1","","指纹","" ,"张","008","2017/5/8 15:10:49","1","","指纹","" ,"张","008","2017/5/9 10:13:12","1","","指纹","" ,"张","008","2017/5/9 11:51:06","1","","指纹","" ,"张","008","2017/5/9 12:19:36","1","","指纹","" ,"张","008","2017/5/9 13:30:50","1","","指纹","" ,"张","008","2017/5/11 10:13:07","1","","指纹","" ,"张","008","2017/5/11 11:26:39","1","","指纹","" ,"张","008","2017/5/11 12:04:37","1","","指纹","" ,"张","008","2017/5/11 13:56:43","1","","指纹","" ,"张","008","2017/5/15 9:19:06","1","","指纹","" ,"张","008","2017/5/15 12:07:44","1","","指纹","" ,"张","008","2017/5/15 13:14:25","1","","密码","" ,"于","009","2017/5/2 9:10:01","1","","指纹","" ,"于","009","2017/5/2 17:58:15","1","","指纹","" ,"于","009","2017/5/3 9:07:14","1","","指纹","" ,"于","009","2017/5/3 18:15:26","1","","指纹","" ,"于","009","2017/5/4 8:58:18","1","","指纹","" ,"于","009","2017/5/4 9:51:00","1","","指纹","" ,"于","009","2017/5/4 13:56:46","1","","指纹","" ,"于","009","2017/5/4 14:47:43","1","","指纹","" ,"于","009","2017/5/4 15:51:32","1","","指纹","" ,"于","009","2017/5/4 16:49:36","1","","指纹","" ,"于","009","2017/5/4 18:10:11","1","","指纹","" ,"于","009","2017/5/5 8:46:30","1","","指纹","" ,"于","009","2017/5/5 8:59:37","1","","指纹","" ,"于","009","2017/5/5 9:25:21","1","","指纹","" ,"于","009","2017/5/5 9:54:00","1","","指纹","" ,"于","009","2017/5/5 10:31:46","1","","指纹","" ,"于","009","2017/5/5 13:38:04","1","","指纹","" ,"于","009","2017/5/5 14:53:26","1","","指纹","" ,"于","009","2017/5/5 16:39:31","1","","指纹","" ,"于","009","2017/5/5 17:49:45","1","","指纹","" ,"于","009","2017/5/5 18:03:37","1","","指纹","" ,"于","009","2017/5/8 8:48:25","1","","指纹","" ,"于","009","2017/5/8 9:48:53","1","","指纹","" ,"于","009","2017/5/8 12:42:48","1","","指纹","" ,"于","009","2017/5/8 14:13:43","1","","指纹","" ,"于","009","2017/5/8 16:10:01","1","","指纹","" ,"于","009","2017/5/8 16:57:31","1","","指纹","" ,"于","009","2017/5/8 18:26:59","1","","指纹","" ,"于","009","2017/5/8 18:57:02","1","","指纹","" ,"于","009","2017/5/8 18:58:06","1","","指纹","" ,"于","009","2017/5/9 8:42:26","1","","指纹","" ,"于","009","2017/5/9 9:34:07","1","","指纹","" ,"于","009","2017/5/9 11:46:12","1","","指纹","" ,"于","009","2017/5/9 13:47:02","1","","指纹","" ,"于","009","2017/5/9 17:25:17","1","","指纹","" ,"于","009","2017/5/9 18:05:02","1","","指纹","" ,"于","009","2017/5/10 8:46:50","1","","指纹","" ,"于","009","2017/5/10 10:14:49","1","","指纹","" ,"于","009","2017/5/10 10:37:15","1","","指纹","" ,"于","009","2017/5/10 11:35:05","1","","指纹","" ,"于","009","2017/5/10 13:34:00","1","","指纹","" ,"于","009","2017/5/10 15:28:08","1","","指纹","" ,"于","009","2017/5/10 16:13:17","1","","指纹","" ,"于","009","2017/5/10 18:11:05","1","","指纹","" ,"于","009","2017/5/11 8:50:41","1","","指纹","" ,"于","009","2017/5/11 9:57:43","1","","指纹","" ,"于","009","2017/5/11 10:18:26","1","","指纹","" ,"于","009","2017/5/11 11:25:47","1","","指纹","" ,"于","009","2017/5/11 13:49:23","1","","指纹","" ,"于","009","2017/5/11 14:02:04","1","","指纹","" ,"于","009","2017/5/11 16:58:33","1","","指纹","" ,"于","009","2017/5/11 18:23:28","1","","指纹","" ,"于","009","2017/5/12 8:49:37","1","","指纹","" ,"于","009","2017/5/12 11:27:42","1","","指纹","" ,"于","009","2017/5/12 13:47:13","1","","指纹","" ,"于","009","2017/5/12 14:10:01","1","","指纹","" ,"于","009","2017/5/12 15:52:46","1","","指纹","" ,"于","009","2017/5/12 17:30:29","1","","指纹","" ,"于","009","2017/5/12 18:09:34","1","","指纹","" ,"于","009","2017/5/15 8:50:10","1","","指纹","" ,"于","009","2017/5/15 13:38:37","1","","指纹",""

当前月,每个人1-30号的考勤情况?

![图片说明](https://img-ask.csdn.net/upload/201504/01/1427877788_559091.png) 1号到30号,每天,每个人的考勤情况 ![图片说明](https://img-ask.csdn.net/upload/201504/01/1427878330_647794.png)

数据库写需求分析的数据流图——员工考勤系统

分层画数据流图,类似这样的:![图片说明](https://img-ask.csdn.net/upload/201911/30/1575090194_831909.png)![图片说明](https://img-ask.csdn.net/upload/201911/30/1575090211_309933.png)l 最好分三层 实现的功能是员工打卡,经理查看、修改员工信息;查看考勤统计和修改考勤统计 ![图片说明](https://img-ask.csdn.net/upload/201911/30/1575090299_509716.png) 第一次写这个不知道怎么下手

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

ArrayList源码分析(入门篇)

ArrayList源码分析 前言: 写这篇博客的主要原因是,在我上一次参加千牵科技Java实习生面试时,有被面试官问到ArrayList为什么查找的速度较快,插入和删除的速度较慢?当时我回答得不好,很大的一部分原因是因为我没有阅读过ArrayList源码,虽然最后收到Offer了,但我拒绝了,打算寒假学得再深入些再广泛些,下学期开学后再去投递其他更好的公司。为了更加深入理解ArrayList,也为

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

String s = new String(" a ") 到底产生几个对象?

老生常谈的一个梗,到2020了还在争论,你们一天天的,哎哎哎,我不是针对你一个,我是说在座的各位都是人才! 上图红色的这3个箭头,对于通过new产生一个字符串(”宜春”)时,会先去常量池中查找是否已经有了”宜春”对象,如果没有则在常量池中创建一个此字符串对象,然后堆中再创建一个常量池中此”宜春”对象的拷贝对象。 也就是说准确答案是产生了一个或两个对象,如果常量池中原来没有 ”宜春” ,就是两个。...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

玩转springboot启动banner定义所得

最近接手了一个springboot项目,不是不熟悉这个框架,启动时打印的信息吸引了我。 这不是我熟悉的常用springboot的打印信息啊,我打开自己的项目: 还真是的,不用默认的感觉也挺高大上的。一时兴起,就去研究了一下源代码,还正是有些收获,稍后我会总结一下。正常情况下做为一个老程序员,是不会对这种小儿科感兴趣的,不就是一个控制台打印嘛。哈哈! 于是出于最初的好奇,研究了项目的源代码。看到

带了6个月的徒弟当了面试官,而身为高级工程师的我天天修Bug......

即将毕业的应届毕业生一枚,现在只拿到了两家offer,但最近听到一些消息,其中一个offer,我这个组据说客户很少,很有可能整组被裁掉。 想问大家: 如果我刚入职这个组就被裁了怎么办呢? 大家都是什么时候知道自己要被裁了的? 面试软技能指导: BQ/Project/Resume 试听内容: 除了刷题,还有哪些技能是拿到offer不可或缺的要素 如何提升面试软实力:简历, 行为面试,沟通能...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

你打算用Java 8一辈子都不打算升级到Java 14,真香

我们程序员应该抱着尝鲜、猎奇的心态,否则就容易固步自封,技术停滞不前。

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

立即提问
相关内容推荐