import java.util.LinkedList;import java.util.TreeSet; class ListNode { int val; ListNode next; ListNode(int x) { val = x; }}public class Solution { pu ...
分类:
其他好文 时间:
2019-06-15 20:09:43
阅读次数:
107
using UnityEngine; using System.Collections; using OpenCvSharp; using UnityEngine.UI; using System.IO; public class FaceDetection : MonoBehaviour { pu... ...
分类:
编程语言 时间:
2019-06-04 13:10:20
阅读次数:
223
class Animal{ public void move(){ System.out.println("动物可以移动"); } } class Dog extends Animal{ public void move(){ System.out.println("狗可以跑和走"); } } pu... ...
分类:
编程语言 时间:
2019-06-03 12:42:17
阅读次数:
113
package workhome; public class WindowDemo { public static void main(String[] args) { //匿名内部类对象,方法链编程 new Window().addListener(new WindowAdapter() { pu... ...
分类:
其他好文 时间:
2019-05-25 19:34:43
阅读次数:
98
1 class File 2 { 3 private $_dir; 4 const EXT = '.txt'; 5 6 public function __construct() 7 { 8 $this->_dir = dirname(__FILE__).'/files'; 9 } 10 11 pu... ...
分类:
Web程序 时间:
2019-05-24 09:20:08
阅读次数:
131
未能正确加载“Microsoft.VisualStudio.Editor.Implementation.EditorPackage, Microsoft.VisualStudio.Editor.Implementation, Version=10.0.0.0, Culture=neutral, Pu ...
分类:
其他好文 时间:
2019-05-20 17:30:38
阅读次数:
116
1. 宽高百分比,不要固定死; 2. 弹性盒flex css3; 3. 单位(em、rem)px; 4. 媒体查询 利器 @media switch 960 1200; 5. gtid布局 网格布局; 6. view port 手机布局利器; 7. 框架布局 bootstrap、amazeUI、pu ...
分类:
其他好文 时间:
2019-05-18 15:47:48
阅读次数:
105
public static void main(String[] args) { List> mapList = new ArrayList>(); Map m1 = new HashMap(); m1.put("name", "AC"); Map m2 = new HashMap(); m2.pu... ...
分类:
编程语言 时间:
2019-05-14 12:48:47
阅读次数:
149
Comparable接口 进行排序的操作: 另一种比较器:Comparator package com.zym.com.zym; public class Stu { private int age; private String name; public Stu() { super(); } pu ...
分类:
编程语言 时间:
2019-05-12 10:52:07
阅读次数:
162
接口应用之策略模式 策略模式(Strategy Pattern),定义了一系列算法,将每一种算法封装起来并可以相互替换使用,策略模式让算法独立于它的客户应用而独立变化。 OO设计原则 1. 面向接口编程(面向抽象编程) 2. 封装变化 3. 多用组合,少用继承 // 测试类(包含main方法) pu ...
分类:
其他好文 时间:
2019-05-10 23:23:02
阅读次数:
166