自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(44)
  • 收藏
  • 关注

转载 原码, 反码, 补码 详解

作者:张子秋出处:http://www.cnblogs.com/zhangziqiu/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 原码, 反码, 补码 详解本篇文章讲解了计算机的原码, 反码和补码. 并且进行了深入探求了为何要使用反码和补码, 以及更进一步的论证了为何可以用反码, 补码的加法...

2018-11-29 22:31:22 173

转载 Apache CXF实战

webservice入门之CXF教程 https://blog.csdn.net/longshengguoji/article/details/41450177Apache CXF实战之一 Hello World Web Service https://blog.csdn.net/kongxx/article/details/7525476Apache CXF实战之三 构建RESTful风...

2018-11-29 10:48:45 151

原创 线程基础+常用方法

1.Thread fundmental knowledgeThread is supported in java by a class Thread and an interface Runnable. they all have a method named run(). Inside the run method is our business logic code.2.Threa...

2018-11-13 23:00:29 132

原创 [Java] Collection Framework

1.Two root interface: Collection & Map.2.Collection has three inherated interface: List, Queue, Set. List & Queue is sorted and elements can dupicated. Set is un-sorted, and element inside i...

2018-11-06 19:57:36 213

原创 [Java] [Exception]

1.非检查异常(RunTimeException)由jvm自动抛出和捕获。因此在把自定义异常(CustomException)包装成RunTimeException 并且抛出时,不用在方法签名处表明throws关键字。private void test2(){ try { test1(); } catch (CustomExceptio...

2018-11-04 23:05:01 115

原创 [Leetcode] 895. Maximum Frequency Stack

/** * Your FreqStack object will be instantiated and called as such: * FreqStack obj = new FreqStack(); * obj.push(x); * int param_2 = obj.pop(); */import java.util.ArrayList;import java.util...

2018-10-12 09:52:43 129

原创 [Leetcode] 592. Fraction Addition and Subtraction

public class Fraction { public boolean symbol; //numerator/denominator public int denominator; public int numerator; public Fraction(int denominator,int numerator,boolean symbo...

2018-10-09 23:39:29 148

原创 [Leetcode] [Experience] How effective remove all leading/tailing white spaces

str = str.trim();str is not null as precondition. 

2018-10-09 09:18:12 100

原创 [Leetcode] 640.Solve the Equation

//region 640. Solve the Equation public String solveEquation(String equation) { //0-x,1-instant int[] coefficientArray = {0,0}; boolean isAfterEqual = false; ...

2018-10-09 00:26:41 186

转载 算法的时间复杂度和空间复杂度计算

算法的时间复杂度和空间复杂度计算博主地址:http://blog.csdn.net/daijin888888 https://blog.csdn.net/daijin888888/article/details/66970902一、算法的时间复杂度定义    在进行算法分析时,语句总的执行次数T(n)是关于问题规模n的函数,进而分析T(n)随n的变化情况并确定T(n)的数量级。算法的时...

2018-10-07 21:21:45 224

原创 [Java] [Format Conversion] int ... String... char[] ... List<Character>... char[] ... String.. int

1. int to Stringint x = 123;String string = String.valueOf(x); 2.String to char[]char[] xString = string.toCharArray(); 3.char[] to List&lt;Character&gt;using loop to add each one ...

2018-09-18 10:10:45 327

原创 [Debug] [Maven] Unable to synchronize artifact; A dependency unable to deleted.

 Phenomenon: When change a version of a dependency, and want to reload it. there is an error occurs:"Unable to synchronize artifact; A dependency unable to deleted."Reason:this is because t...

2018-09-18 09:23:23 131

原创 [Putty] How to use Putty Connection Manager

1.Directly input your host (like: cgtn315.aliyun.com) into Host (don't input like http://cgtn315.aliyun.com).And put login &amp; pwd , then click  2.After that, will appear a tab named your Ho...

2018-08-30 13:51:35 392

转载 [Linux] Linux Commands Cheat Sheet

Reprint from : https://www.linuxtrainingacademy.com/linux-commands-cheat-sheet/Linux Commands Cheat SheetPlease Share!Share Tweet Pin Google+ LinkedIn289SHARESDid you know that there ar...

2018-08-30 13:51:07 635

转载 这48个Java技术点,让你的面试成功率提升5倍!

JAVA基础JAVA中的几种基本类型,各占用多少字节? 下图单位是bit,非字节 1B=8bit String能被继承吗?为什么?不可以,因为String类有final修饰符,而final修饰的类是不能被继承的,实现细节不允许改变。平常我们定义的String str=”a”;其实和String str=new String(“a”)还是有差异的。前者默认调用的是String....

2018-08-11 22:54:10 114

原创 [Debug] [wpf] Window must be the root of the tree. Cannot add Window as a child of Visual

 Solution: https://social.msdn.microsoft.com/Forums/vstudio/en-US/f8288536-c386-4d33-92d8-205434295ea1/window-must-be-the-root-of-the-tree-cannot-add-window-as-a-child-of-visual?forum=wpfAll you n...

2018-08-07 14:41:00 1110

原创 [Debug] [C#] System.Reflection.TargetParameterCountException : Parameter count mismatch.

Phenomenon: Solution:One occasion is that your Test class method have a parameter. While test method donot need parameter any more.So delete it.

2018-08-06 14:44:34 2135

原创 [C#] . [VS2015] package vs dll

One package would contains multi-dll1.packagepackage would defined in pom.xml, and if you run processResources.bat , batch file will scan all definitions and download it into Dependencies folder.2.DLL...

2018-07-06 09:55:12 270

原创 [C#] . [Diagnostic] 常见的Diagnostic标记

[DebuggerStepThrough]the Visual Studio debugger does not stop in a method that is marked with this attribute even if a breakpoint is set in the method.

2018-07-04 14:06:50 542

转载 [Wpf] WPF中的Generic.xaml, theme以及custom control

转载自:https://www.cnblogs.com/lx-nju/p/5276640.html----------最近做的项目用了个漂亮的开源UI库,结果项目临近结尾发现要支持.Net 3.5, 然而那个UI库却最低支持4.0。欲哭无泪,最后决定拿掉那个库,自己改改style得了。深刻的教训。作为程序员一般都比较害怕搞界面,这下硬着头皮上,折腾折腾Blend,抄抄改改各种style,弄着弄着居...

2018-07-03 14:32:40 885

转载 [Wpf] . [Theme] 重构/Themes/Generic.xaml & 创建一个Custom Control的典型做法

转载自:https://www.codeproject.com/Articles/433476/Structuring-Your-XAML-Sources--------------Structuring your XAML source files by using dictionaries.Download source - 25.3 KBIntroductionWhen creating c...

2018-07-03 14:30:46 1662

原创 [Debug] . [Wpf] XamlParseException was unhandled by user code

Question:&lt;ListBoxItem IsSelected="{Binding HideZeroInRows, Converter={StaticResource InvertedBoolConverter}}"&gt;Off&lt;/ListBoxItem&gt;Solution:this exception tend to mean that there is an error (...

2018-07-03 13:51:25 219

转载 [C#] . [Debug] 利用DebuggerDisplay特性得到更好的Debug体验

转载自:https://blog.csdn.net/ddxkjddx/article/details/7535686----------------------------这个特性太碉堡了,很像WPF中的数据绑定,当然本质就是VisualStudio在调试时利用反射获取对象的值。构造函数中的属性值(就是{}中的内容)不仅仅可以是简单的属性值。还可以是索引器,而且这一切可以嵌套。(DebuggerD...

2018-06-28 10:16:12 2392

转载 [C#] . [Lambda] Lambda表达式

https://www.jianshu.com/p/082accc59812------------------------从** C#3.0开始,可以使用一种新的方法把实现代码赋予委托: Lambda表达式**。只要有委托参数类型的地方,就可以使用Lambda表达式。这是前面用到的一个Lambda表达式myTimer.Elapsed += (sender, eventArgs) =&gt; ...

2018-06-27 16:36:04 133

转载 [C#] . [Unity] 使用Microsoft.Practices.Unity 依赖注入

https://www.cnblogs.com/slardar1978/p/4205394.html-----------------------------------Unity是微软Patterns &amp; Practices团队所开发的一个轻量级的,并且可扩展的依赖注入(Dependency Injection)容器,它支持常用的三种依赖注入方式:构造器注入(Constructor In...

2018-06-27 16:34:05 5645 1

转载 [C#] . [Thread] Thread.Join()

转载自:https://www.cnblogs.com/slikyn/articles/1525940.html--------------------------------Thread.Join()在MSDN中的解释很模糊:Blocks the calling thread until a thread terminates有两个主要问题:1.什么是the calling thread?   ...

2018-06-27 16:18:57 99

转载 [C#] . [Thread] 多线程 Thread,Task,Async/Await,IAsyncResult

转载自:https://www.cnblogs.com/doforfuture/p/6293926.html------------------------------说起异步,Thread,Task,async/await,IAsyncResult 这些东西肯定是绕不开的,今天就来依次聊聊他们1.线程(Thread)多线程的意义在于一个应用程序中,有多个执行部分可以同时执行;对于比较耗时的操作(...

2018-06-27 14:52:18 260

转载 C# -- ref / out / params

转载自:https://blog.csdn.net/u011555996/article/details/52871908-----------------------1.ref/outref和out都对函数参数采用引用传递形式——不管是值类型参数还是引用类型参数,并且定义函数和调用函数时都必须显示生命该参数为ref/out形式。两者都可以使函数传回多个结果。两者区别:两种参数类型的设计思想不同,...

2018-06-27 10:26:39 110

原创 ToastMasters - IceBreaker Presentation

Three VIPGood afternoon ladies and gentlemen, my name is Frank. Ijoint in Nomura two months ago. Now I work in credit team.  Today, I am so appreciated that I could bethe Ice Breaker share my story to...

2018-06-26 13:32:30 1111

转载 C# -- ICommand

Reproduced:https://www.codeproject.com/Articles/1052346/ICommand-Interface-in-WPF Author: Snesh Prajapati---------------------------------------IntroductionIn this article, we will learn about IComman...

2018-06-22 16:12:11 2345

原创 C# -- Delegate

Inbuilt delegate like Action, Predicate or Func.Action:Predicate:Func:

2018-06-22 14:05:20 147

转载 多线程(Multi-Thread)

转载自:https://blog.csdn.net/zhangliangzi/article/details/51490945作者:leeon_l

2018-06-13 16:40:34 464

转载 同步回调,回调,异步回调

转载自:https://blog.csdn.net/zhangliangzi/article/details/52066560作者:leeon_l————————————————————————函数回调机制,一种双向调用思想,简单来说就是,如下图所示:  在层次一中的方法一(函数)调用层次二中的方法,并传入函数二的地址,而这个被调用的方法又会调用层次一中的方法,这个最后被调用的方法二就是回调方法。...

2018-06-13 16:38:40 617 1

转载 序列化 (Serialization)

转载自:http://www.runoob.com/java/java-serialization.html作者:RUNOOB.COM-------------------------------------------Q1:什么时候使用序列化?序列化其实很好理解,假如你现在做一个项目,项目是分工合作的,并且你同其他小组成员不在同一个城市,那么你要如何把你写的那些类给其他小组成员呢?这个时候就要用...

2018-06-13 15:49:34 112

转载 哈希 (Hash)

作者:之幽链接:https://www.zhihu.com/question/26762707/answer/40119521来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。---------------------------------------------------------Q:一段字符串怎么hash? 一段长达1TB的二进制文件又如何hash? 他们都不...

2018-06-13 15:01:04 204

转载 JVM(3): 类加载机制

作者:梦工厂链接:https://www.jianshu.com/p/a9d8c1a37b8c來源:简书著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

2018-06-12 16:16:13 85

转载 JVM (2) : Java堆(Heap)中对象创建、布局、访问全过程

作者:梦工厂链接:https://www.jianshu.com/p/ac162726d7de來源:简书著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。______________________________________________________一、对象的创建 new Animal();类加载检查检查这个指令的参数是否能在常量池中定位到一个类的符号引用,并且检查这...

2018-06-11 18:07:05 813

转载 泛型 (Generics)

作者:VieLei链接:https://blog.csdn.net/s10461/article/details/53941091来源:CSDN著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。--------------------------------------------对java的泛型特性的了解仅限于表面的浅浅一层,直到在学习设计模式时发现有不了解的用法,才想起详细的...

2018-06-11 14:05:39 155

转载 反射(Reflection)

作者:老顽童周伯通;罗大然不写代码链接:https://www.zhihu.com/question/24304289/answer/147529485来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。--------------------------------------------1.反射的使用场景前提:需要了解JVM的内存模型。为什么要理解JVM内存模型呢?因...

2018-06-08 14:43:02 140

转载 JVM (1) : Java内存模型

作者:老顽童周伯通链接:https://www.zhihu.com/question/24304289/answer/147529485来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。----------------------------------------------------------------------假如你写了一段代码:Object o=new ...

2018-06-08 09:51:42 127

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除