Day1:Accomplished things:1, complete the main function (interaction with the user process) and the main interface.Testdada:/** * Created by XKFX on 2017/3/12.*/ Public classTestdada { Public Static voidMain (string[] args) {Dadaimpl Dada=NewDadaimpl
/** * Collection * List (Access ordered, indexed, can be repeated) * ArrayList * The underlying is an array implementation, thread unsafe, find and modify Fast, increment and delete slow * linkedlist * Bottom is linked list
Given A linked list, remove the nth node from the end of the list and return its head. For example, Given linked list:1->2->3->4->5, and n = 2. After removing the second node from the end, the linked list becomes 1->2->3->5.note:given n'll always
The Observer pattern is the behavior pattern of the object, also called the Publish-subscribe (publish/subscribe) mode, the Model-view (Model/view) mode, the source-listener (Source/listener) mode, or the slave (dependents) mode.The Observer pattern
Sometimes, the following error occurs when you use idea development Springmvc to find debugging:12-mar-2017 12:08:02.345 Critical [RMI TCP Connection (2) -127.0.0.1] Org.apache.catalina.core.StandardContext.listenerStart Error Configuring
I. Java rules: Static variables i.e. class variables (differences and instance variables) are accessed using a class method that is a static methodExample: public class Object_1{static int i=1;Static{Static zone blocks, executed only once, when a
The mediator pattern is primarily decoupled, using an intermediary object that encapsulates the interaction between a set of objects so that the objects can be decoupled from each other.Application Scenarios:1. When a group of objects to communicate
Requirements: One railway station, three conductors sell 100 tickets1. Implementing by inheriting the thread classRealization idea: Establish ThreadTest class inherit thread and build three threads sell 100 tickets Public
Original Blog Address
In doing a Java optimization ppt, saw the difference between i=i+1 and i+=1, before this really did not think so thin.Which is the highest efficiency of 1.x=x+1,x+=1 and X + +? Why?X=x+1 is the lowest because it executes as
1. Exception: An abnormal condition (problem) that occurs during runtime.There are two types of problems: Expection (JVM), Error (emitted by the system's bottom). Modify code)Throwable: Defines the features that are common to the problem.The process
classb{intv=100; /*B () {this.v=v; }*/Why not use no difference? } Public classCompare { Public Static voidMain (STRING[]ARGV) {B a=NewB (); System.out.println ("Please enter a number"); Scanner input=NewScanner (system.in); intSc=Input.nextint ();
Requires software jdk-8u60-linux-x64.rpm1. Installing the JDK[[Email protected] ~] #rpm-IVH jdk-8u60-linux-x64.rpm2. Configure Environment variables[[Email protected] ~] #vim/etc/profile Add the following three (the second section has.:)Export
Java Filter and JavaFilterIntroduction to Filter
Filter is also called a Filter. It is the most practical technology in Servlet technology. Web developers use the Filter technology to manage all web resources on web servers, such as Jsp, Servlet,
NO.1 (doscommand & Environment configuration), No. 1dos command
Today, we will briefly introduce some common doscommands and how to configure environment variables. After all, it is necessary to learn programming, so it is a basic requirement to
Java array -- Bubble sorting, java array bubbling
1 package demo; 2 3 import java. util. arrays; 4 5 public class Demo02 {6 public static void main (String [] args) {7 int [] arr = new int [10]; 8 for (int I = 0; I a [j + 1]) {25 int temp = a [j]; 2
Delete duplicate numbers in the sorting array.
Question requirements:
Description: A sort array is given. duplicate numbers are deleted from the original array so that each element appears only once and the length of the new array is returned.
Do
Regular Expression use cases, Test Cases
When you need to match, search, replace, and Judge strings during program development, you can use regular expressions to save a lot of effort.Since jdk1.4 launched the java. util. regex package, we have
Jersey get, put, post, delete simple use, jerseyput
To use jersey, you must first have a corresponding dependency package. There are many methods to obtain the dependency package. Download the dependency file locally or obtain it using maven. Assume
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