1.1Excel IntroductionAn Excel file is a workbook workbook, where you can create multiple sheet sheet in a workbook, and a worksheet that contains multiple cell cells, which are made up of column rows (row), and are listed in uppercase English
The first file classAn overview1. File class: Abstract representation of path names for files and directories2. Features and functions:1) used to encapsulate a file or folder as an object2) Easy to manipulate the file and folder property information3
Interface/Implementation Class
Describe
Whether the key can be null
Null is an error
Whether key is duplicated
Key repeat Error
Whether key is consistent with add
is thread safe
List
A collection
1. Non-volatileAfter initialization of the string class is immutable (immutable), first of all, I propose to look at the source code implementation of the String class, which is essentially the starting point to understand the string class. From
Counting BitsGiven a non negative integer number num. For every numbers I in the range 0≤i≤num calculate the number of 1 ' s in their binary representation and return them as An array.Example:For you num = 5 should return [0,1,1,2,1,2] .Follow up:
Staticis static modifier, what is static modifier? As you know, any variable or code in the program is automatically allocated by the system at compile time to store the memory, and so-called static refers to the memory allocated after compilation
?? CollectionThere are two sub-categories under collection, List and set, respectively. The list is ordered and the elements can be duplicated. The set is unordered, and the element is not repeatable. Here is the
As described in the Java Programming Idea (4th edition), generics appear to be motivated by:There are many reasons for the emergence of generics, and one of the most noticeable reasons is to create container classes.Generic classThe container class
public static int Maximalrectangle (char[][] matrix) { int rownum=matrix.length; if (rownum==0) return 0; int Columnnum =matrix[0].length; Int[][] Height=new int[rownum][columnnum+1]; int maxarea=0; for (int i=0;i=0&&j stack=new stack<> (); for (
See this topic, a lot of people will think I write my Java code, as for the class, the JVM love how to load the loading, bloggers for a long time also think so. With the accumulation of programming experience, more and more feel the importance of
I. Comparison of dates1. Comparison of milliseconds of time using gettime methodif (Date.gettime () Return string.valueof (Long.parselong (year)-1);} else {Return year; }2. Date implements the comparable interface, directly using the CompareTo
first of all, the article is longer, to ensure that you have the patience to read must be able to understand, no patience directly point X can. Abstract Factory mode is one of the creation design patterns. Abstract factory model suitable for product
Exception handling mechanism exists mainly for the program in the run, if there is an exception, the program can be uninterrupted, and continue to run.Exceptions are classified as run-time exceptions, and non-runtime exceptions.If it is a run-time
Directly on the codepublicclass test4 { publicstaticvoidmain(String args[]){ int [] a=newint[3]; for(int j:a){ j=55; } }}The code is very easy, the following is the Java compiled byte code: Public classTest2 =
Java Learning (17th), automatic packing and unpacking, enumeration type, java Enumeration
Automatic packing and unpacking
Sometimes it is necessary to convert basic types such as int to reference type objects;
Automatic Packing of basic data types.
Java class to obtain the bean of the Spring container
There are many ways to obtain beans in Spring. Here we will summarize:
First: Save the ApplicationContext object during initialization
ApplicationContext ac = new FileSystemXmlApplicationContext("
Spring (12)-Bean Injection Using Annotation
In the previous blog posts, bean injection is configured in xml, and Boyou's requirements are added, so we decided to give a simple explanation of the annotation method, it won't involve too complex
Java review Summary 2 static methodStatic MethodLike static variables, we can also use static methods, called static methods or class methods.In fact, the main method we have been writing is the static method.Static members of the same type can be
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