1 ImportJava.util.Calendar;2 Importjava.util.Date;3 4 Public classA {5 /*This problem learned to use the Java calendar and classes, mainly on the data to brake time, in the year and month minus one, and then the week 1234567 is starting from Sunday
Suppose the string is "Hello world!" and now you want to change it to "! World Hello "problem : The difficulty of this problem is how to ensure that the word is not reversed when the string is reversedProblem Solving :
The first method of
1. Learning Goals(1) Every week on time to complete the tasks assigned by the teacher.(2) Listen to the teacher carefully, do not understand the private to do homework.(3) The teacher left the problem, down serious thinking.2. About the difference
Java environment configuration, java environment
1. download Java
Address: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Install on your computer
2. Configure the environment
Go to Control Panel \ All
RocketMQ (1) -- helloworld,
Dual Master mode:
Server Environment
Serial number
IP
Role
Mode
1
192.168.32.135
NameServer1, brokerServer1
Master1
2
192.168.32.136
NameServer2, brokerServer2
Master2
SQL determines whether the field is empty. SQL determines the field
When querying SQL statements, it sometimes determines whether a field is null.
The field content is empty.
1. null
2. null ''of the string''
The statement is as follows:
Use Collections to implement the sort method to implement the Comparable class for the List object class,
package com.test.jj;import java.util.ArrayList;import java.util.Collections;public class Test { ArrayList mens = new ArrayList(); public
How to read the source code-read the three realms of source code and read the three realms of source code
"Novice programmers who have no experience in poor technology can read the project source code? ""Has anyone read the source code of mybatis?
A simple example of spring AOP, springaop
AOP: For Aspect-oriented programming, it is to modularize things except the business part, such as logging. Just like adding, deleting, modifying, and querying student information, it can modularize output
Java -- multi-thread programming learning/01, java multi-thread programming 01
Original article: http://www.cnblogs.com/QG-whz/p/8351298.html Note: it is recommended to see the original author of the article, single on this knowledge point, more
JAVA basics/Lesson 19th: how to create an array or JAVA Array
An array is a fixed-length container that contains the same type of data.I. Declare an array:
Int [] a; declares an array variable.[] Indicates that the variable is an array.Int
Springboot -- springboot + mybatis the simplest solution for multiple data sources,
Generally, many data sources are used to solve these problems. The master-slave mode or the business is complicated. You need to connect different database shards to
Multiple Usage Details of DecimalFormat and decimalformat
The NumberFormat. getInstance () method returns an instance of NumberFormat (actually a subclass of NumberFormat, such as DecimalFormat), which is suitable for formatting a number based on
Spring Security builds a rest service to implement rememberme and restrememberme
Spring security remembers my basic principles:
Upon login, the request is sent to the filter UsernamePasswordAuthenticationFilter. After the filter is successfully
002 variable,
Content: Java variables, basic data types
Logical type: boolean = true/falseInteger: byte occupies one byte, short occupies two bytes, int occupies four bytes, and long occupies eight bytes. int can express the decimal range (21474836
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