http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4415733http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4244499
A long-standing bug, but Sun doesn't seem to be in a hurry to change it, but it's hard for us to eat in Java.Fortunately there are
public class Regex {
2
3/**
4 * Check the email input is correct
5 * Correct writing format for username@domain
6 * @param value
7 * @return
8 */
9 public boolean Checkemail (String value, int length) {
Ten return Value.matches ("\\w+ [-+.] \\w+) *@\
First Stage
Technical name
Technical Content
J2se(Java Base section)
The Prelude to Java development
Computer fundamentals, a brief History of Java language development and development environment, experience Java program
Java PermGen Space OutOfMemory summary 2008-05-28 17:47
The above three article on JVM Performance tuning is summarized as follows:
The JVM heap is divided into three parts(1) New domain: Storing all New Chengshen objects(2) Old domain: The object
Recently changed jobs, interviewed a branch, with a little bit of income, as I said in my previous article, Beijing is now using a lot of technology, the company is not many companies in Tianjin, always feel that learning needs to have a simple plan,
In your application profile, find your key app key and app Secret. The second is to fill in the advanced information of the application of the authorization callback page and cancel the URL of the callback page, this can be your own local Web
One: Window under the execution of CMD specified
Program Examples:
/* This method implements the automatic file copy function. Copy the specified file name from the source path to the destination path * Using system commands automatically
Load a Web project on MyEclipse's own tomcat and start Tomcat java.lang.ClassNotFoundException: Org.springframework.web.context.ContextLoaderListener error. In general, this error may be the Spring library is not included, mainly Spring-web.jar.
This learning is to use Java to generate XML format files
The jar pack Jdom.jar used in the demo
I wrote a demo for easy understanding.
This article is from Http://blog.csdn.net/manymore13
Import Java.io.FileOutputStream;
Import
[Java Common class library ]
Stringcompress (String compression)
Method Description:
1.compress (String): Zip-Compress a string to return an array of bytes
2.decompress (byte[]): Restores a compressed byte array to a string
Use:
Saved to the
Caused by:java.lang.IllegalArgumentException:error at:: 0 can ' t find referenced pointcut
Workaround:
1, version problem. Look at your version. Mine is JDK1.7. The corresponding jar package is Aspectjweaver-1.6.6.jar and Aspectjrt-1.6.6.jar
2,
In a Java virtual machine, integers have byte,short,int,long four species, 8-bit, 16-bit, 32-bit, and 64-bit signed integers. Integers are expressed in the computer using the complement, in the Java Virtual machine is also in the form of complement;
(inkfish original, reprint please indicate the source: http://blog.csdn.net/inkfish/)
In order to seek the performance optimization of Java code, search from the internet to use final keyword compile-time inline optimization method, but really
For example, you can convert http://zuidaima.com/to Http://t.cn/zlsvWVq
The following figure:
Original is not easy, reproduced please indicate the source share Sina short chain generated Java code
Package com.zuidaima.util;
Import
1. Format source code
Ctrl + Shift + F – Format the source code.
Ctrl + SHIFT + o– Manage import statements and remove unused statements
In addition to performing these two functions manually, you can have eclipse automatically format the source
Import Java.util.Random;
public class Statictest {
private static int data = 0;
public static void Main (string[] args) {
//Open three threads for
(int i=0;i
Run Result:
Thread-1 has put data:367396051Thread-2 has put
Read the file is mainly to set the read input stream, such as InputStreamReader to set the decoding format read, and the file itself is the same encoding format, so that the read out will not garbled.
InputStreamReader reader = new
The Java Collection framework is the foundation of the Java programming language and is an important knowledge point in the Java interview. Here, I have listed some important questions and answers about Java collections. what the 1.Java set frame 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