Recently, I am engaged in POS-related projects. I need to learn about socket.
Part 1: Basic knowledge
Socket knowledge (basic theory)
Http://cuiyingfeng.blog.51cto.com/43841/599825
Java Socket Basics
Http://vaero.blog.51cto.com/4350852/893847
Package COM. sinosuperman; public class testquestion {static shared = new shared ("Michael", "Guangzhou"); public static void main (string [] ARGs) {A = new A (); B = new B (); system. out. print (shared. getname () + ","); For (INT I = 0; I
1,Java. utilPackage: Java utility library java. util package. In this package, Java provides a practical method and data structure for providing the data class and calendar in this package. For example, the calendar class is used to class some
Most Java programs are used in Unix/Linux systems, while most of them are developed in windows. Although Java can run in anywhere, there are many environment configuration problems after all.
For example, in UNIX, you need to write some
Import java. util .*;
/*** * Example of using the observer mode.* After your mobile phone number is changed, your friends will be notified automatically.* ** @ Author not attributable* @ Version 1.0*/Public class observerdesignpattern extends
Comparison and experience of the latest Java Web application technologies
Author:Bwwlpnn
With regard to the latest technology for implementing Web applications using Java, I would like to consider implementing the jetspeed
Reprinted please indicate the source: http://blog.csdn.net/guolin_blog/article/details/8986285
Today, your leader is eager to find you. I hope you can help him. He is in a hurry to go to the meeting. What can I do? You are curious.
He told you that
Katakana
Please wait until there are too many annotations (annotation)Too many requests have been processed before using (Application)Too many slave nodes (Backup)Aggregate aggregate (method)Extends aggregate (class)Zookeeper zookeeper clients
Programming is a concrete solution to the problem. just like building a house, what kind of materials should be used to build a style building? What is the specific position... different architects have different methods. to standardize the solution
Public void testreadzip () throws exception {// Inputstream is = new bufferedinputstream (New fileinputstream ());String basedir = "C: // Documents and Settings // ws // desktop // create a folder ";Zipfile zfile = new zipfile ("C: // Documents and
Data Type ing when actionscript3.0 is converted to Java:
ActionScript data type
Java Data Type
Null
Null
Number
Java. Lang. Number
Boolean
Java. Lang. Number, Boolean, java. Lang. String
Many programmers do not focus on performance design at the beginning. They can only discover and solve the problem when the system is delivered and run, but often this can only be saved a little. Performance management should be integrated into
I need to learn about socket recently, so I just ran a chat demo.
Basically, I copied someone else. I added an util class and optimized it.
If you have a swing interface, students and beginners can take it
I. Avoid using complex expressions in loop Conditions
Without compilation optimization, loop conditions are repeatedly calculated in a loop. If the value of the loop condition remains unchanged without complex expressions, the program runs
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