1. Export the CSV file /** * @Author Lin.hongwen * @Date 2018/05/29 * Export the CVS file to the specified directory * * @param the file CSV file (path + file name), the CSV file does not exist from Create * @param dataList data * @return*/
The method is not many, can use is good.I'm using dom4j. Dependency> groupId>dom4jgroupId> Artifactid>dom4jArtifactid> version>1.6.1version> Dependency>The contents of the read file are as follows:XML version= "1.0" encoding= "UTF-8
Often Java code is run in the JVM without direct access to the system hardware such as memory allocation release, but if there is a need to skip the JVM directly with Java access to the system hardware, such as the C language pointer operation, you
First, Java development tools1. Windows system (operating system)2. JDK3. MyEclipse, Eclipse, Intellij ideaSecond, the installation of the JDK1. Download JDK1) Open official website:http://www.oracle.com/2) Select Download Java for Developers3) Open
I. BACKGROUNDEach time Tomcat is started, the console console outputs a variety of information, which is seen in both messages[XXX 2018-06-04 15:52:13,772] (DEBUG)-Xxx.xxx.basic.listener.StartUpListener-(startuplistener.java:53) xxx start
two common ways to implement Java dynamics are:① Byte code operation② Reflexruntime manipulation of bytecode allows us to do the following:① dynamic generation of new classes② dynamically changing the structure of a class (adding, deleting,
When learning the Jedis part of Redis, use the serialization tool to Protostuff (Protobuf's Java client). When I first saw the serialization of these words, I felt confused. So, referring to a lot of information on the Internet, understand the Java
1, long time=system.currenttimemills (); Get current system time2. Date formatting and conversions to and from the self-character stringYYYY: YearMM: MonthDD: DayHH:1~12-hour System (1-12)HH:24-hour System (0-23)MM: MinSS: SecondsS: MSE: Day of the
Two ways of defining:
Dynamic initialization:
Define and open an array: Class name object array name [] = new class name [length]
Distribution by: Class name Object array name [] = NULL; object array name = new class name
Background: When you use a Map object, you may have a key that corresponds to the need for multiple valuesRealize:Import Java.util.arraylist;import java.util.hashmap;import Java.util.list;import Java.util.map;import Java.util.map.entry;public class
Reference http://how2j.cn/k/number-string/number-string-wrap/22.htmlEncapsulation classAll basic types have corresponding class typesFor example, an int corresponds to a class that is an integerThis class is called the encapsulation class . Public
Reference http://how2j.cn/k/number-string/number-string-parse/317.htmlNumeric to StringMethod 1: Use the static method of the String class valueofMethod 2: Boxing the base type as an object and then calling the object's ToStringpackage digit;
In many cases, the main thread creates and starts a child thread, and if a child thread takes a lot of time-consuming operations, the main thread tends to end before the child thread ends. At this point, if the main thread wants to wait for the
Reflection in JavaI. Overview of ReflectionsThe Java reflection mechanism is in the running state, for any class, can know all the properties and methods of this class, for any one object, can call any of its methods and properties;This dynamic
Static domain?? If you define a domain as static, there is only one such domain in each class. Each object has a copy of its own for all instance domains. For example, suppose that you need to give each employee a unique identifier, add an instance
Interview questions:
Wait (), notify (), Notifyall () Why are these methods defined in the object class?These methods seem to be thread-like methods, but there are no methods in the thread class to synchronize lock objects in multiple threads:
First, the use of static in java programming idea has such a sentence:" static method is that there is no this static Method cannot call a non-static method inside, which in turn is possible. You can also call static method. This is
DescriptionGiven a binary tree, find its minimum depth.The minimum depth is the number of nodes along, the shortest path from the root node to the nearest leaf node.ExampleGiven a binary tree as follow: 1 / \ 2 3 / 4 5 The minimum depth is
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