Thinking in java– type information
Personal feel Java in the more difficult part of, in the read some Netty source found in fact this piece is very useful.
This chapter focuses on Rtti and reflection. Say your own
As an example of storing strings in ArrayList, I do it myself before the instructor in the video lectures. The subject requirements are as followsMy own practice is to iterate through the collection with a for loop to get the elements in the
string Constants in JavaThe string in Java is immutable, of course, with string constants, such as:publicstaticfinal String a="123";Is different, here refers to a can only point to the string 123 , and what we mean today is immutable refers to the
First, you need to know the client jumps and server differences:Client Jump: Response.sendredict (String Path), the address bar has changed.The request property cannot be passed.Server side jump: Address bar does not change. Can pass the request
Http://www.tuicool.com/articles/IfeUfqSLF4J (Simple logging facade for Java) is Java's easy log façade, which is not a specific log solution, it only serves a variety of Slf4j-logoLog system. Here the Slf4j-logo can be log4j, can be the JDK log, can
Given numbers represented as strings, return multiplication of the numbers as a string.Note:the numbers can be arbitrarily large and is non-negative.public class Solution {//Analog hand multiplication public String multiply (string num1, String num2)
Everyone configures environment variables are generallyJava_home:c:\program Files (x86) \java\jdk1.6.0_30;Path:%java_home%\bin;CLASSPATH:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar.Explain:Path points to the search command paths, and if you
Redis does not provide a method for set (String key, Object obj), but it provides a method for set (final byte[] key, final byte[] value), which can be stored by converting the object into a byte array.Object class
2.stringbuilder,stringbufferstring concatenation with these two classes, high efficiency, save memory, if the string "+" number splicingPoor performance and wasted space, resulting in a lot of rubbishStringBuffer thread safety; StringBuilder thread
Example: Packagecom.dxz.enumtest; Public enumenumtest {duanxz ("The given name of Me"), DXZ ("The family name of Me"); PrivateString context; PrivateString GetContext () {return This. Context; } PrivateEnumtest (String context) { This. Context
Class Internal
This package (instances, class variables, and methods)
Subclass (Any location)
External packages (instance, class variables, and methods)
Public
√
√
√
√
Protected
√
Java basics: 16th days: Remove duplicate content from the collection, java 16th days
Taking the string stored in the ArrayList as an example, I did it myself before the instructor explained it in the video. The requirements are as follows:
My
Ajax asynchronously refreshes provincial/municipal connections, and ajax asynchronously refreshes provincial/municipal connections
Provincial/Municipal connections are widely used in web Front-End User Registration. Ajax asynchronously refreshes
Sorting Algorithm (2) -- select sorting and Improvement
Select basic sorting idea
Bubble Sorting has a disadvantage. For example, when we compare the first number of a1 and the second number of a2, positions will be exchanged as long as a1 is
AJAX submit method (POST) Demon, ajax submit postdemon
The POST submission method of AJAX is essentially similar to GET. There are some minor differences. When the POST is to submit data, the setRequestHeader () method is required to submit the HTTP
Java concurrent programming: Exchanger
Exchanger
V-object types that can be exchanged
The synchronization point of the thread in which the elements can be paired and exchanged. Each thread presents a method on the entry to the exchange
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