登录
首页 » Java » Java Cookbook - Problems and Solutions for Java Developers (Early Release).epub

Java Cookbook - Problems and Solutions for Java Developers (Early Release).epub

于 2020-03-03 发布
0 149
下载积分: 1 下载次数: 0

代码说明:

Java continues to grow and evolve, and this Cookbook continues to evolve in tandem. This book helps to get you up to speed right away with hundreds of hands-on recipes across a broad range of Java topics. You’ll learn useful techniques for everything from string handling and functional programming to network communication.Each recipe includes self-contained code solutions that you can freely use, along with a discussion of how and why they work. If you are familiar with the basics of the Java language, this cookbook will bolster your knowledge of the language in general and its many recent changes and how to apply them in your day-to-day development.Recipes include:Methods for compiling, running, and debugging“Packaging” Java classes and building applicationsManipulating, comparing, and rearranging textRegular expressions for string- and pattern-matchingHandling numbers, dates, and timesStructuring data with collections, arrays, and other typesObject-oriented and functional programming techniquesInput/Output, Directory and filesystem operationsNetwork programming on both client and serverProcessing JSON for data interchangeMultithreading and concurrencyUsing Java in Big Data applicationsInterfacing Java with other languages------------------The 4th Edition of this book has been updated to cover changes through Java 12 and includes new recipes for Big Data and data science.

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 智慧学成项目(scala)
    在线教育平台
    2020-12-03下载
    积分:1
  • 校园商品管理系统SSM框架(含数据库脚本)
    基于ssm框架的商铺管理系统,数据库mysql。基于maven管理
    2019-12-23下载
    积分:1
  • 客户关系管理系统v1.0
    客户关系管理系统v1.0
    2020-05-26下载
    积分:1
  • java 设计模式之 外观模式 实例源码下载
    java 设计模式之 外观模式 实例源码下载
    2014-07-06下载
    积分:1
  • js拼图游戏 实例源码下载
    拼图游戏
    2015-03-04下载
    积分:1
  • JAVAWEB学生选课管理系统(源码+sql server数据库)
    JAVAWEB学生选课管理系统(源码+sql server数据库)
    2020-06-13下载
    积分:1
  • 实验室管理系统(源码+数据库)
    【实例简介】 http://127.0.0.1:8989/lab/login_indexs.do admin 123456 js 123456 xs 123456
    2021-05-18 10:32:37下载
    积分:1
  • Linux用户管理系统(代码+答辩+论文)
    功能需求:(1)单个用户添加:通过键盘输入用户名和口令,用户组的指定可选(若输入则将用户归于该组,否则用系统默认处理),要求首先检查新用户是否存在,并给出相应信息;(2)批量添加:待建用户信息保存在文件中,包括用户名、口令、用户描述及所属组(格式自定)(3)单用户删除:用户名通过键盘输入同时删除用户主目录,删除用户前将用户名主目录中的内容备份到特定目录中,命名格式:用户名.tar.gz(4)批量删除:用户名通过文件提供,要求同单用户删除。(5)用户配额:对指定用户的用户主目录启用磁盘配额。注:为用户设定3种配额模板:①100M空间,200个i节点;②200M空间,400个i节点;③500M空间,1000个i节点。(1)利用read命令从命令行输入用户名存入变量;  []或test进行条件的判断;  Cut命令剪切文件列,配合grep命令剪切文件行,从而获取文件中特定信息;  Useradd命令,-g指定组,-m生成用户主目录;  Passwd命令用户改用户口令;(2)tar命令压缩文档,后缀.tar.gz要自己加上;  Mv移动文件到特色目录下;  Usedel删除用户,参数-r同时删除用户主目录;(3)while read可以逐行读取文件内容;  >进行输出重定向,并且覆盖输出内容到文件;  Chpasswd成组更改用户口令,文件行格式为“用户名:口令”;(4)跟单个用户删除操作一样,只是从文件读取要删除的用户名(5)给用户进行配额前需要给相应目录开启配额功能;  Disk –l查询可进行配额的磁盘分区信息;  Vi /etc/fstab文件,添加usrquota开启用户配额权限,添加grpquota开启组配额权限,文件中同行各字段间用tab键隔开;  Mount –o remount /重新挂载文件系统,让fstab文件生效;  Quotaon /开启配额功能;  Setquota命令进行用户配额的设置;(6)while touch循环生成多个文件检查i节点的配额设置情况;测试前需要给相关用户对/目录的写权限;  dd if=/dev/zero of=$username bs=1M count=500给相关用户写数据,测试用户可用空间的配额设置情况;
    2019-07-08下载
    积分:1
  • java实验室预约管理系统(源码+数据库脚本)
    随着高校教学资源逐步开发,高校教育资源的应用种类逐步增多。而实验室作为高校基本教育资源之一,与日常教学工作开展、课堂项目实践有着密切联系。由此,如何借助新时期技术,加强高校实验室应用数据信息程序开发,在高校智能化管理程序推广中占有基础性地位。该软件是以Java语言为实现预言。其功能在系统内部有源代码直接完成,操作人员只需输入一些简单的汉字,数字,即可达到自己的目标。 登陆账号:admin 密码:123456 package com.company; import com.company.Bean.Student;import com.company.Bean.Teacher;import com.company.Bean.User;import com.company.DB.DB; import javax.swing.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener; public class Main extends JFrame {    private JPanel p;    private JLabel lblName,lblPwd,lblRole;    private JTextField txtName;    private JPasswordField txtPwd;    private JButton btnOk,btnCancle;    String[] s = {"学生","教师","管理员"};    private JComboBox comboBox;    public Main(){        super("用户登录界面");        p = new JPanel();        p.setLayout(null);        lblRole=new JLabel("角色:");        comboBox=new JComboBox(s);        lblName = new JLabel("账户:");        lblPwd = new JLabel("密码:");        txtName = new JTextField(20);        txtPwd = new JPasswordField(20);        btnOk = new JButton("登录");        btnCancle = new JButton("取消");        //注册确定按钮的事件处理        btnOk.addActionListener(new ActionListener() {            @Override            public void actionPerformed(ActionEvent e) {                String strName = txtName.getText();                String strPwd = new String(txtPwd.getPassword());                System.out.println("用户名:" strName "密码:" strPwd);             }        });        //注册取消按钮的事件处理        btnCancle.addActionListener(new ActionListener() {             @Override            public void actionPerformed(ActionEvent e) {                //清空                txtName.setText("");                txtPwd.setText("");             }        });        lblRole.setBounds(90,50,60,25);        comboBox.setBounds(130,50,140,25);        lblName.setBounds(90,80,60,25);        txtName.setBounds(130,80,140,25);        lblPwd.setBounds(90,110,60,25);        txtPwd.setBounds(130,110,140,25);        btnOk.setBounds(130,150,60,25);        btnCancle.setBounds(200,150,60,25);        p.add(lblRole);        p.add(comboBox);        p.add(lblName);        p.add(txtName);        p.add(lblPwd);        p.add(txtPwd);        p.add(btnOk);        p.add(btnCancle);        this.add(p);        this.setSize(400,300);        this.setLocation(300,300);        //设置窗体不可改变大小        this.setResizable(false);        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        btnOk.addActionListener(new ActionListener() {            @Override            public void actionPerformed(ActionEvent e) {               String account =txtName.getText().trim();               String password=txtPwd.getText().trim();               String role=null;               if(comboBox.getSelectedItem().equals("管理员")){                   role="admin";               }               else if(comboBox.getSelectedItem().equals("学生")) {                   role="student";               }               else{                   role="teacher";               }                if(role.equals("admin")){                    User user=new User(account,password);                    if (DB.Login(user)) {                        JOptionPane.showMessageDialog(null, "登录成功", "", JOptionPane.PLAIN_MESSAGE);                        AdminMain adminMain = new AdminMain();                        adminMain.setVisible(true);                        Main.this.setVisible(false);                    }                      else {                        JOptionPane.showMessageDialog(null,"账号密码错误", "", JOptionPane.PLAIN_MESSAGE);                    }                }                else if (role.equals("student")){                    Student student=new Student(account,password);                    if(DB.studentLogin(student)){                        StudentMain studentMain=new  StudentMain();                        studentMain.setVisible(true);                        Main.this.setVisible(false);                        JOptionPane.showMessageDialog(null, "登录成功", "", JOptionPane.PLAIN_MESSAGE);                    }                    else {                        JOptionPane.showMessageDialog(null,"账号密码错误", "", JOptionPane.PLAIN_MESSAGE);                    }                }                else if (role.equals("teacher")){                   Teacher teacher=new Teacher(account,password);                    if(DB.teacherLogin(teacher)){                        TeacherMain teacherMain=new TeacherMain();                        teacherMain.setVisible(true);                        Main.this.setVisible(false);                        JOptionPane.showMessageDialog(null, "登录成功", "", JOptionPane.PLAIN_MESSAGE);                    }                    else {                        JOptionPane.showMessageDialog(null,"账号密码错误", "", JOptionPane.PLAIN_MESSAGE);                    }                }            }        });        btnCancle.addActionListener(new ActionListener() {            @Override            public void actionPerformed(ActionEvent e) {                            }        });    }    public static void main(String[] args) { // write your code here        Main main=new Main();        main.setVisible(true);     }}
    2020-12-12下载
    积分:1
  • 活动选项卡
    活动选项卡
    2015-11-11下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载