PackageCom.imooc.io;ImportJava.io.File;Importjava.io.IOException;//lists some of the common uses of file, such as filtering, traversal, etc. Public classFileUtils {//list all files under the development directory (including their subdirectories)
Note: The Stringbuilder,append,length method in Java makes it easy to solve string problems1 /*2 * Sword means offer replacement space3 * xsf4 * */5 6 /*A function to begin replacing a space, length of the original array, lengths not calculated in
Getactionbar (). Settitle (); Java.lang.NullPoint exception resolution is due to the fact that the low version does not support direct access, modify the scenario:Try changing your theme to Thisand not the AppCompat Version In another case, if the
The Java keyword This can only be used in a method method body. When an object is created, the Java Virtual Machine (JVM) assigns a pointer to the object that refers to itself, which is the name of this pointer. Therefore, this can only be used in
Public class Demo{/** TestThe difference between i++ and ++i in Operation */ public static void main (string[] args) { int i = 1 int j = Span style= "COLOR: #af69bb" >1 /*a The result is 1 i++ is not to consider the
A. Set set
Set set, which resembles a jar, "throw in" set, and there is no obvious order between objects in the collection. The set set is basically exactly the same as collection, and it does not provide an additional method. The set is
Abstract Factory pattern is a further abstraction of the factory method pattern, in its English words "provide an interface for creating families of related or dependent obj ECTs without specifying their concrete classes ", translate," provides an
Java environment variable setting methodConfiguring the JDK environment variable under Windows XP: (Windows7 similar)1, install the JDK, the installation process can customize the installation directory and other information,For example, we choose
Connect to the Java Foundation (i)Outline: (1) advanced features of the class(2) Collection class(3) Exception handling(4) Input/output(5) Swing program DesignAbstract class: Only declares the existence of a method and does not implement its class;
Talking about the design mode: Chain Of Responsibility)
What is the responsibility chain model?
Official explanation: avoid coupling the sender of a request to its own er by giving multiple objects a chance to handle the request.So that multiple
Reference of Integer objects in JAVA
There is no pointer in JAVA, but there is also a reference concept. Here we will mainly talk about whether Integer is the same object.
1. First read a piece of code:
Public static void main (String [] args)
The principle of design pattern-the principle of opening/closing and the principle of design pattern
The open/closed principle (OCP) is the cornerstone of "reusable design" in Object-Oriented Design and one of the most important principles in object-
Spring (1) and Spring ()I. Spring Overview
A long talk
Spring is an open-source framework. Spring was a lightweight Java development framework that emerged in 2003, it is derived from part of the concepts and prototype stated by Rod Johnson in his
Interface isolation principle based on design pattern Principle and Design Pattern Principle
Before talking about the interface isolation principle, we should first clarify our main character: What is an interface? There are two types of interfaces:
SQLException and jdbcsqlexception caused by JDBC calls on Jsp pages
When you connect to the MySQL database locally, you have always used to directly import the JDBC jar package in the project lib. In this way, you only need the following code to
Six basic principles of design patterns
There are a lot of related content on the Internet, but most of them are too complicated. So here I want to use an article to summarize and summarize these six principles, some of the content in this article
Dependency inversion principle of design pattern principlesThe Dependence Inversion Principle is dependent on abstraction, not specific. Simply put, it is to program the abstraction and do not program the implementation. This reduces the coupling
Binary Search Tree description
/** Binary search tree */public class BinarySearchTree {// root node private TreeNode root = null; public static void main (String [] args) {BinarySearchTree bst = new BinarySearchTree (); bst. insertTreeNode (new
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