Worked for three years, the second time using reflection!Description of the problem encountered:After multiple page queries, the object property in the returned list is ". 00" and the page is displayed unfriendly.The reason for the query is because
String is immutable in Java. You can ' t change them.You need to create a new string with the character replaced.String myName = "Domanokz"= myname.substring (0,4) + ' x ' +myname.substring (5);Or can use a StringBuilder:New StringBuilder ("Domanokz"
The BASE64 is used in this tool class and requires a third-party class library: javabase64-1.3.1. JarNote:RSA encryption plaintext maximum length of 117 bytes, decryption requires the maximum length of the ciphertext is 128 bytes, so in the process
1. Self-jconsole tools.(1) Assume that you start from the command line so that the JDK is on PATH and executes Jconsole.(2) Suppose you start from the GUI shell, find the JDK installation path, open the Bin directory, and double-click jconsole .(3)
In a Mac environment, the Java Server environment is built:1 Use it. Compare the new JDK:Http://download.oracle.com/otn-pub/java/jdk/8u25-b17/jdk-8u25-macosx-x64.dmg2 Download Tomcat compression pack (use version_7.xx here)3 Download the Tomcat
First, the System class1.static long currentTimeMillis()Returns the current time in milliseconds.In fact: The time difference (measured in milliseconds) between the current and coordinated GMT January 1, 1970 midnight.Long time =
Synchronous vs. asynchronousUsually synchronization means that one process of a task is serialized on multiple threads, while asynchrony means that a process can allow multiple threads to process simultaneously.Asynchrony typically represents better
The difference between Java interfaces and abstract classesAbstract class:1, the class containing abstract method must be abstract class, in turn abstract class, not necessarily contain abstract method;2. Abstract classes must be defined by abstract,
Collections the tool class that controls the collection, arrays the tool class that manipulates the arrayMost of the methods in arrays are overloadedFocus on mastering aslist (); Converting arrays to collections
static
Heavy duty overloadFor: Methods already in the classOverloading conditions:
The same method name, different parameter list "Different parameter list includes the type of parameter, the order of parameters"
Does not constitute an
One, generic interfaceInterface inter{public void Show (T t);} Class Interimple implements inter{//knows is the string type public void show (String str) {System.out.println ("show" +str );}} Class Interimple_2 implements inter{//do not know what
Source: Java Random String Tool classSource code: Http://www.zuidaima.com/share/1550463479532544.htmJava random string of the tool class can be all numbers, characters, can also be a combination of characters and numbers of the tool class, hope to
Object-oriented Inheritance
What is inheritance?
Inheritance means that a class gets the member variables and member methods of another class. Java only supports single inheritance. A subclass can only inherit one parent class, and many inheritance
The role of the static keyword.
Static can be used to define static member variables, static functions, and static code blocks.
Syntax features of static member variables
Definition method: Add static before the member variable
Class Person {static
How to use this, how to use this
After an object is created, the Java Virtual Machine (JVM) assigns a pointer to the object to reference itself. The pointer name is this. This is a pointer to the object itself. This is only associated with a
Conversion between hexadecimal
Our computer stores binary values, which can also be converted by php. In this case, we can tell you in a simple way that this blog is just a note for study.
10 to others (2, 8, 16)
Rule: decimal number,
Swift basics-use TableViewController to customize the list
First, create a swift project, delete the storyboard content, add a Navigation Controller, set the class of the corresponding storyboard interface, and set the View Controller's is initial
How Tomcat Works Reading Notes 3 ------- ConnectorSeveral Concepts: HttpServlet and ServletServlet is an interface that defines a network service. All our servlets need to implement it (or its subclass)HttpServlet is an abstract class that targets
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