public struct Complex { public double real; public double imaginary; public Complex(double real, double imaginary) { this.real = real; this.imaginary ...
分类:
其他好文 时间:
2020-07-07 13:25:18
阅读次数:
57
1.显示文件拓展名 2.新建记事本,编写以下程序 import java.io.*; public class HelloWorld{ public static void main(String[] args){ System.out.println("Hello Java!"); } } 3.保 ...
分类:
编程语言 时间:
2020-07-07 12:59:50
阅读次数:
62
1 /** 2 * 冒泡排序 3 * @author jliu.l 4 * @2020年7月6日 5 * 6 */ 7 public class Demo01 { 8 9 /** 10 * @param args 11 */ 12 public static void main(String[] a ...
分类:
编程语言 时间:
2020-07-07 10:16:26
阅读次数:
56
//通过有序数组生成平衡搜索二叉树 public static Node generateTree(int[] arr){ if(arr==null){ return null; } return generate(arr,0,arr.length-1); } private static Node ...
分类:
编程语言 时间:
2020-07-07 00:16:03
阅读次数:
67
thinkphp6&laravel7&swoft都使用了composer去加载类库。 访问框架的入口文件,框架的第一件事就是配置自动加载,这个是后面类的调用与实例化的基础工作。 为什么需要自动加载? 当使用未定义的类与接口时,自动去搜索并加载类文件。赶在php抛出错误前做最后的挣扎。 整个compo ...
分类:
其他好文 时间:
2020-07-07 00:09:01
阅读次数:
56
思路:将他们转成int数组,然后按位相加,空间复杂度有点高,但时间复杂度为Max(O(M,N)) import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanne ...
分类:
其他好文 时间:
2020-07-07 00:05:17
阅读次数:
82
[CSS 中文开发手册:empty (Selectors) - CSS 中文开发手册该:empty伪类代表没有子节点的所有元素。这里只考虑元素节点和文本(包括空格)。注释或处理指令不影响元素是否被认为是空的。/* Selects any that contains no content */div:... ...
分类:
Web程序 时间:
2020-07-06 21:32:19
阅读次数:
103
一 多态-转型 多态的转型分为向上转型与向下转型两种: 向上转型:当有子类对象赋值给一个父类引用时,便是向上转型,多态本身就是向上转型的过程。 使用格式: 父类类型 变量名 = new 子类类型(); 如:Person p = new Student(); 向下转型:一个已经向上转型的子类对象可以使 ...
分类:
编程语言 时间:
2020-07-06 20:14:54
阅读次数:
61
System类 示例代码: public class Demo3 { public static void main(String[] args) { //arrayCopy 数组复制 int[] src = {12, 34, 45, 56, 67, 45}; int[] dest = new in ...
分类:
其他好文 时间:
2020-07-06 20:00:11
阅读次数:
61
一、简介:Memcached 是一个高性能的分布式,基于内存的key-value存储的对象缓存系统(并不是一个数据库),用于动态Web应用以减轻数据库负载。 二、Memcached下载和安装1、下载和安装Memcached服务端1.1、下载地址下载地址:http://static.runoob.co ...
分类:
系统相关 时间:
2020-07-06 16:31:43
阅读次数:
75