Java Notes---(1)

Start to learn Java, the first is the configuration of the Java programming environment, first download the JDK from the official website, installation, here to remind, it is best not to put in the C-disk, record the address of the storage, the

Java Statistics program run time

The   code is as follows:   The first is calculated in milliseconds.   long starttime = system.currenttimemillis ();     //Get start time     dosomething ();     //test code snippet     Long

Java Code Settings Selector

/** * Set Picture selector * * @param context * @param idnormal * @param idpressed * @param idfocused * @param idunable * @return */public static statelistdrawable Newselector (context context, int idnormal, int idpressed, int idfocused,

Java report Finereport two times the use of JS to explain

I. OverviewWith the development of Finereport, the designers and servers it provides should be able to satisfy most of your needs, fully 0 encoded software developed, revolutionizing the speed of software development, and improving software

Java Implementation Observer pattern

Recently, Java has been used to implement the observer pattern in design mode, the source code is as follows:  Package Cn.demo;public class Testobersver {public static void main (string[] args) {people person=new person ();//Declaration by Observer

Solve the lock table problem by working with both Erlang and Java in a single table

Zhangchangchang1, problem descriptionThe Erlang side writes an Oracle table through ODBC, and Java uses the JDBC driver to write the table, which is locked when the write operation occurs multiple times.2. Problem solvingIdea: Using the adapter

Abstract classes and Interfaces in Java

Transferred from: http://www.cnblogs.com/xiaoao808/archive/2008/03/11/1100886.htmlAbstract class Implementation Interfacehttp://fishswing.iteye.com/blog/1527166In Java, using an abstract class to implement an interface is not useless. On the

Java read. Properties configuration file

File Location:File contents:Code:public class test{public static void Main (string[] args) throws ioexception{ Properties Pro = new Properties (); C3/>fileinputstream in =null; try{in = new FileInputStream

Java Design Patterns

Create pattern 1. Singleton mode (Singleton pattern) 2. Factory method Pattern (Factory mode) 3. Abstract Factory mode (Factory pattern) 4. Builder Pattern 5. Prototype mode (Prototype pattern) Structural mode 6. Adapter mode (Adapter pattern) 7.

JAVA design mode policy mode

Use Policy mode (strategy) It defines the algorithm family, which is encapsulated separately so that they can be replaced with each other, and this pattern allows the algorithm to change without affecting the client using the algorithm.

JAVA design Mode Memo mode

Use Memo Mode (Memento) captures the internal state of an object without compromising encapsulation, and saves the state outside that object. The object can then be restored to its previously saved state. Memo mode is a

Java Caching framework

Jbosscache/treecacheJbosscache is a replicated transaction cache that allows you to cache enterprise application data to better improve performance. Cached data is automatically copied, allowing you to easily perform cluster work between JBoss

Java Collection Framework list operation

/*list Basic Operation** List A=new list ();* Increase* A.add (index,element); add by specified position, the remaining elements move back* AddAll (index,collection); Adds a series of elements starting at the specified position, and the remaining

Java Implementation Chart Display

The chart was used a few days ago. This is hereby recorded:I'm using a fusioncharts.js.introduced two files. Fusioncharts.js and Fusioncharts (SWF file in the folder) Baidu Network disk: http://pan.baidu.com/s/1pJx9II31, define a divid= "Tubiao">div>

SerialOld collector for JAVA Garbage Collector

SerialOld collector for JAVA Garbage Collector The Serial Old collector is a type of Garbage Collector in Java virtual machines. It is an Old version of the Serial collector. It is also a single-thread collector and uses the "mark-organize"

Implement File compression and File compression

[Convert] to achieve File compression and File compression /** Create a compressed file, from is the folder path, to is the compressed file path after creation */public void CreateZip (String from, String) throws IOException {List list = getFiles

ApplicationEvent and ApplicationListener encapsulation in Spring, applicationlistener

ApplicationEvent and ApplicationListener encapsulation in Spring, applicationlistener 1. Test Program EventTest. java. To publish an event, you only need to call the FrameEventHolder. publishEvent () method. 1 package com.junge.spring.event; 2 3

Copy files (file input and output streams) in Java and java

Copy files (file input and output streams) in Java and java Import java. io. bufferedInputStream; import java. io. bufferedOutputStream; import java. io. file; import java. io. fileInputStream; import java. io. fileNotFoundException; import java. io.

JSP page connection and submission methods (web basic learning notes 6) and web Learning notes

JSP page connection and submission methods (web basic learning notes 6) and web Learning notes 1. GET request New Page 1.1 and hyperlink request New Page link to page2 link to page2 in the window relative path link to page2 link

Big talk design model? -- Decorative Mode

Big talk design model? -- Decorative Mode The weekend is coming again. After training, I will continue to study the design model. As a coder, my health is also very important. I have to exercise well on weekends, the message that Yao beina died most

Total Pages: 6206 1 .... 6039 6040 6041 6042 6043 .... 6206 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.