Method One: Most people use a method, intuitive, convenient, but inefficient.1:if (s = = NULL | | s.equals (""));Method Two: Compare string length, high efficiency, is the best I know of a method.2:if (s = = NULL | | s.length () Method Three: Java
A bitwise operation is a change in the size of a number by the movement of the number after it is converted into binary.1. & Bitwise ANDThe two digits of the same bit are 1, or 1; if one is not 1, then 0.2, | Bitwise ORThe same bit as long as one is
Reference: http://my.oschina.net/gao0516/blog/136103Adorner mode: the ability to dynamically extend an object without having to change the original class file and use inheritanceAdapter mode: Transforms the interface of a class into another
1. Write Test CasesDescription: I can easily configure the bean to facilitate dependency injection by using Spring's reasonWhere Hibernateconfig is the bean's configuration file@RunWith (Springjunit4classrunner.class) @ContextConfiguration
Ordera few days ago, there was a requirement in the company project to read the configuration file, and it was best to ensure that the order loaded into memory was consistent with the order in the configuration file, but that if the Properties class
Writer:bysocket (mud and brick pulp carpenter)Micro-Blog: BysocketWatercress: BysocketFaceBook: BysocketTwitter: BysocketRemember Java source code is set to start looking, wrote a series of related articles, received a good evaluation. Thank you,
About the Java object and pass the problem, occasionally in the look at JS, found an invalid conversion object data problems, I feel a little puzzled, think is the characteristics of JS, randomly want to confirm in Java above, the results found not
Time-size comparisons and the conversion of string types to date classes are very common in development, and the following are primarily a tool approach Public classTest { Public Static voidMain (string[] args) {//TODO auto-generated Method
Original: AES encryption when thrown Java.security.InvalidKeyException:Illegal key size or defWhen using AES encryption, when the key is greater than 128, the code throwsJava.security.InvalidKeyException:Illegal key size or default parametersIllegal
Topic:1. Given a string, determine if the string contains a substring. If included, find all occurrences of the substring.For example: "ABCBCBABCB34BCBD", the "BCB" substring appears in the position: 1,7,12. Strings and substrings are entered by the
1: Multithreading (understanding)(1) JDK5 subsequent lock operations and release actions for threadsLock locks(2) Description and code representation of the deadlock problem(3) Multi-threaded representation of producers and consumers (inter-thread
1. StaticModified:Modifier properties: Class variables, Total classModification methods: Static methods, non-static methods and properties cannot be accessed directly in static methodsStatic methods can only be overridden by static methods, and
When writing to use Java, there will inevitably be some template code to write, otherwise get/set,tostring, hashcode, close resources, define constructors and so on. The code will look very redundant and very long. Lombok project can be we get rid
Usage One: ConstantsBefore JDK1.5, we define constants that are: publicstaticfianl ..... Now, with enumerations, you can group related constants into an enumeration type, and enumerations provide more methods than constants.Java code
Public
Why Java is so much the way--Interview with Wisdom podcast Feng Wei teacherFeng Wei Teacher, has been engaged in software development and teaching for many years, has served as project manager, software Architect, senior software Development
Java SE 6 Technical manual or Java SE 6 Technical manualJava SE 6 Technical ManualWhy choose to use Markdown? Just simply re-typesetting the document too boring, rather than take advantage of this opportunity to learn something new, so I will use
DZ Forum deployment and dz deployment
Installation steps:
1. First install the wampserver software (: On the http://sourceforge.net/projects/wampserver );
2. Download The discuz source code (http://pan.baidu.com/s/1hqKqlpU), put all the files in
Design Pattern-builder Pattern
Concept:
Builder mode separates the creation of a complex object from its representation, so that different representations can be created during the same construction process.
The builder model can separate the
Set of java Sets
The set can store multiple objects, but it does not remember the storage sequence of elements or allow repeated elements in the set (different set sets have different judgment methods ).
1.HashSet class
HashSet stores elements in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service