*TreeMap* 小案例 package com.treemappractice; /** * 学生实体类 */ public class Student implements Comparable<Student>{ private String name; private int stuNo; ...
分类:
其他好文 时间:
2021-02-01 11:54:05
阅读次数:
0
创建一个学生类 package com.peihua.cn.test1.Test; public class Student { private String name; private int age; private String Xxingbie; public Student() { } p ...
分类:
编程语言 时间:
2021-02-01 11:46:33
阅读次数:
0
数据库的连接(JDBCUTil) 具体代码: public class JDBCUtil { private static final String DRIVERNAME = "com.mysql.cj.jdbc.Driver";// jdbc 4.0以后不需要 private static fin ...
分类:
其他好文 时间:
2021-01-29 12:17:52
阅读次数:
0
硬盘,显卡这些硬件是可以不消耗CPU资源而自动与内存交换数据的,这也是实现异步的基本条件。所以异步是硬件式的异步,而多线程就是多个thread并发。 使用委托实现异步调用 通过Action以及Func的BeginInvoke方法可以很轻松的实现异步调用,如下: private void btnAsy ...
分类:
编程语言 时间:
2021-01-28 12:10:00
阅读次数:
0
当私有继承时,基类的所有public成员都变成了private。如果希望它们中的任何一个 是可视的,只要用派生类的public部分声明它们的名字即可: #include<iostream>using namespace std; class Pet {public: char eat() const ...
分类:
编程语言 时间:
2021-01-27 14:01:01
阅读次数:
0
unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, Unit2; type TMyProc = procedure of obj ...
分类:
其他好文 时间:
2021-01-27 13:59:43
阅读次数:
0
public class GsonUtil { private static Gson gson = null; static { if (gson == null) { gson = new Gson(); } } private GsonUtil() { } /** * 对象转字符串 * @pa ...
分类:
编程语言 时间:
2021-01-27 13:35:43
阅读次数:
0
Jwt认证 and oAuth 前后台项目已经搭建完成,接下来要处理微信网页授权、获取用户信息并且绑定到后台 0、修改util.js // 已经授权登录过并且token未过期的就不用再授权了 if (uni.getStorageSync('jwtToken') != '' && uni.getSto ...
分类:
微信 时间:
2021-01-27 13:35:24
阅读次数:
0
创世区块配置文件genesis.json的格式解读 中文网站上关于genesis 的解析大多数都来自于这个Gist:Ethereum private network configuration guide. (github.com),但实际上genesis 中的配置项还有一些其他内容。 首先,gen ...
分类:
Web程序 时间:
2021-01-27 13:14:36
阅读次数:
0
一、测试类 import java.util.Arrays; public class SortTest { private static final int L = 20; public static void main(String[] args) { int [] arr = new int[ ...
分类:
编程语言 时间:
2021-01-26 12:42:40
阅读次数:
0