打印三角形 public class TriangleDemo { public static void main(String[] args) { for (int j = 1; j <= 5; j++) { for (int i = 5; i >= j; i--) { System.out.pr ...
分类:
编程语言 时间:
2021-06-30 18:13:09
阅读次数:
0
一.Object类 1.toString 一般子类都有覆盖。默认返回:对象的 class 名称 + @ + hashCode 的十六进制字符串。 public String toString() { return getClass().getName() + "@" + Integer.toHexS ...
分类:
其他好文 时间:
2021-06-30 18:09:41
阅读次数:
0
A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years ...
分类:
其他好文 时间:
2021-06-30 18:06:04
阅读次数:
0
20. 有效的括号](https://leetcode-cn.com/problems/valid-parentheses/) class Solution { public boolean isValid(String s) { Map<Character, Character> map = ne ...
分类:
其他好文 时间:
2021-06-30 18:02:33
阅读次数:
0
简单工厂模式 Shape.java public interface Shape { void draw(); } Circle.java public class Circle implements Shape{ @Override public void draw() { System.out. ...
分类:
编程语言 时间:
2021-06-30 18:01:11
阅读次数:
0
布尔逻辑运算符:返回一个boolean结果 有:! 非、& 与、| 或、^异或 、&&短路与、 || 短路或 短路与:左边为false,右边就不执行 短路或:左边为true,右边就不执行 public static void main(String[] args) { int i = 10; int ...
分类:
编程语言 时间:
2021-06-30 17:59:18
阅读次数:
0
java是值传递 方法重载:在一个类中,有相同的函数名称,但形参不同的函数(个数不同、类型不同、排列顺序不同等) public class ReLoadDemo { public static int add(int x,int y){ return x+y; } public static int ...
分类:
其他好文 时间:
2021-06-30 17:58:14
阅读次数:
0
总述:任何集合内部都可以存储其它任何集合 1、List嵌套List public class Test{ public static void main(String[] args){ /* 假如有两个班的学生姓名,它们分别存储在两个集合中: */ //第一个班 ArrayList<String> ...
分类:
其他好文 时间:
2021-06-30 17:53:01
阅读次数:
0
转自:https://blog.csdn.net/gao_zhennan/article/details/79099940 一,问题发生今天(18/1/18),我在尝试删除一个定义为auto_increment的主键时(所用语句:alter table testdrop primary key)结果 ...
分类:
数据库 时间:
2021-06-30 17:40:13
阅读次数:
0
Rocksdb提供迭代器来来访问整个db中的数据,就像STL中的迭代器功能一样,用来访问容器中的具体的数据。 访问形式以及访问接口有如下几种: 遍历所有的key-value //打开db,并初始化一个迭代器指针 rocksdb::Iterator* it = db->NewIterator(rock ...
分类:
数据库 时间:
2021-06-30 17:34:44
阅读次数:
0