基于平衡二叉树实现Set public class AVLTreeSet<E extends Comparable<E>> implements ISet<E> { private AVLTree<E,Object> avl; public AVLTreeSet(){ avl = new AVLTr ...
分类:
其他好文 时间:
2021-02-17 14:54:37
阅读次数:
0
1 题目 我们提供了一个类: public class Foo { public void first() { print("first"); } public void second() { print("second"); } public void third() { print("third ...
分类:
其他好文 时间:
2021-02-17 14:51:27
阅读次数:
0
/** * 方法一:使用indexOf和subString方法,循环判断并截取 */ public static void getStrCount1(String str, String con) { int count = 0; while (str.indexOf(con) >= 0) { // ...
分类:
编程语言 时间:
2021-02-17 14:46:16
阅读次数:
0
Spring Security简介 历史 添加parent和web依赖 SpringBootApplication @MapperScan@SpringBootApplication public class SpringSecurityApplication{ public static void ...
分类:
编程语言 时间:
2021-02-17 14:45:56
阅读次数:
0
比赛地址:这里 T1: 根据题意,符合题目要求的只有两种字符串:0101010…或1010101…,因此,我们可以直接构造这两种字符串并比较与原串的差异即可。 附上代码: class Solution { public: int minOperations(string s) { int len = ...
分类:
其他好文 时间:
2021-02-17 14:32:43
阅读次数:
0
Switch选择结构学习 接上一篇博客的switch public static void main(String[] args) { String name = "芜湖"; //JDK7新特性,表达式结果可以是字符串 //字符的本质还是数字? //反编译 java--class(字节码文件) 反编 ...
分类:
编程语言 时间:
2021-02-17 14:18:49
阅读次数:
0
封装 定义:属性私有private;get/set 目的 提高程序的安全性,保护数据 隐藏代码的实现细节 统一接口 提高系统的可维护性 代码 public class Student { //名字 private String name; //学号 private int id; //性别 priv ...
分类:
编程语言 时间:
2021-02-17 14:11:07
阅读次数:
0
对应手册:点击查看 在当前模版文件中包含其他的模版文件使用include标签 比如网站会创建一个公共使用的头部和公共使用的底部 模板引入如下: <include file="Public/header" /> // 引入头部header <include file="Public/footer" / ...
分类:
Web程序 时间:
2021-02-16 12:46:50
阅读次数:
0
public class demon04 { public static void main(String[] args) { int i = 128; double b = i; //强制转换 (类型)变量名 由高-->低 //自动转换 由低-->高 System.out.println(i); ...
分类:
其他好文 时间:
2021-02-16 12:46:29
阅读次数:
0
HelloWorld 随便新建一个文件夹,存放代码 新建一个java文件 编写代码 public class Hello{ public static void main(String[] args){ System.out.print("Hello,World!"); }} 编译javac jav ...
分类:
其他好文 时间:
2021-02-16 12:44:13
阅读次数:
0