CopyCode The Code is as follows :/*
String name = "adsbsadgsadgtewterfsdf ";
Eg a --> 6, B --> 1 d --> 3...
Store the string in A (letter) => 2 (number) to the map set framework.
Idea: 1. convert a string into a character array.
2. define a map set
CopyCode The Code is as follows: Import java. Text. simpledateformat;
Import java. util. calendar;
Import java. util. date;
Public class helloworld {
Public static void main (string [] ARGs ){
// Specify the time output
Title: Define the left rotation operation of a string: Move several characters before the string to the end of the string. For example, the string abcdef is rotated two places to the left to obtain the string cdefab. Please implement the left
When I wrote this usage summary yesterday, I suddenly encountered a problem. After asking someone else, I had my own understanding. Write it down to provide a better understanding.
1) Someone has written a good initialization attribute constructor,
Java provides the ability to copy objects. lang. there is a clone method in the Object class. This method is a protected method. In the subclass, you must override this method and declare it as the public type. In addition, you must implement the
Java memory Division:
In Java memory allocation, java divides the memory into: Method Area, heap, virtual machine stack, local method stack, and program counter. The method zone and heap share all threads, while the Virtual Machine stack and the
Java serialization algorithm analysis
Serialization is a process of describing objects in a series of bytes. deserialization is a process of recreating these bytes into an object. Java serialization API provides a standard mechanism for processing
Overload: multiple functions with the same name but different parameters
Note: 1. Different parameters mean that the parameter type, number of parameters, and order must be at least different.
2. return values, exceptions, and access modifiers
A recursive algorithm is an algorithm that calls itself directly or indirectly. In computer programming, recursive algorithms are very effective in solving a large variety of problems. They often make the description of algorithms concise and easy
1. It belongs to the javax. swing package.
2. function: customizes four standard dialogs of different types.
ConfirmDialog confirmation dialog box. Ask the question and confirm it by the user (Press "Yes" or "No)
InputDialog prompt input
Set
A collection that does not contain duplicate elements. To be exact, set does not contain e1 and e2 elements that meet e1.equals (e2), and can contain at most one null element;
This implementation is not synchronous. If multiple threads access a
Servlet:
Of course, in servlet, the jump usually occurs in methods such as doGet and doPost.
1) redirect Mode
Response. sendRedirect ("/a. jsp ");
The path of the page is relative. SendRedirect can jump the page to any page, which may not be limited
Encapsulation: encapsulate some attributes and methods into a class.
Inheritance: a subclass inherits some attributes and methods of the parent class.
Polymorphism: for example, a parent class has multiple sub-classes with different characteristics.
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