I. Identifiers and Character setsThe Java language specifies that identifiers begin with a letter, an underscore "_" or a dollar sign "$", followed by a sequence of characters that can be followed by a number, letter, underscore, or dollar sign.
Summary of learning contents in the sixth chapter-Inheritance and polymorphism what is inheritance
InheritedIn object-oriented, subclasses inherit the parent class, avoiding duplicate behavior definitions. In general, the parent class of the
LinkedList Unique methods:1. Method Introduction (see Code)ImportJava.util.*;ImportJava.util.ListIterator;/*** Created by Lenovo on 2016/8/21.*/ Public classex12 { Public Static voidMain (string[] args) {LinkedList list=NewLinkedList (); List.add
Iterators use the issues to be aware of:1. Iterators are important when traversing elements:It is not allowed to use the collection object to change the number of elements in the collection while iterating over the elements.If you want to add or
Summary of the study contents of the eighth chapter exception handlingSyntax and inheritance schema
Try, catch:try, and catch represent the wrong object after doing some processing.
Exception inheritance Schema: Errors are wrapped as
Interface listiteratorUnique method:Hasprevious () Determines whether the previous element exists.Previous () The current pointer moves up one unit and then the element that the current pointer points to .Next (); Remove the element that the current
Bubble sort (1) The bubbling Sort algorithm works as follows: (from back to forward)
Compares the adjacent elements. If the first one is bigger than the second one, swap them both.
Do the same for each pair of adjacent elements, starting
1. What is the difference betweenI. New Arraylist(Arrays.aslist (IA)); List list2 = Arrays.aslist (IA); i. New arraylist (Arrays.aslist (IA))
The new is an ArrayList independent copy of the original one.
Although you create the
Rewrite (overriding)(1) The polymorphism between the parent class and the child class, redefining the function of the parent class. If you define a method in a subclass that has the same name and arguments as its parent class, we say that the method
1, a hyperlink to the page, link to the controllerhref= "/download"> Click to download file a >2, the controller in the code:@RequestMapping ("/download") @ResponseBody publicvoidthrows Exception { // get Download road
Personal SummaryBefore this project, because of the personal status and mentality of the reasons, from the beginning of the GUI curriculum is basically in the state of the spirit, the state reflected in the class energy can not focus on sleepy, the
Json-lib uses "2", json-lib "2"
The previous article mainly focused on the use of json-lib to implement conversion between JSON strings and objects in java, ignoring the functions of json-lib itself. Two Classes in json-lib are important: JSONObject
[Java learning notes] A Collection of Framework II and java learning notesIteration
● Iteration is a way to retrieve elements from a collection.
● Because the Collection contains the iterator method, each subclass Collection object has an iterator.
●
[Java learning notes] defines a function to remove duplicate elements from the ArrayList and to learn the arraylist
1 import java. util. arrayList; 2 import java. util. iterator; 3 4 import cn. itcast. p1.bean. person; 5 6 public class
Tomcat & Servlet (1), apachetomcat
I. Overview
To allow access and interaction between web servers and web applications, servlet is the standard interface for interaction. web servers must comply with servlet standards, and web applications should
Garbled solution and garbled Solution
Garbled characters may occur.
1. garbled characters are opened locally from files uploaded by others.
Solution: Unified Validation Code
2. The uploaded encoding is normally enabled locally, and garbled
Thinking logic of computer programs (32) and thinking 32
Joda-TimeThe previous section introduced the date and Time classes in JDK APIs. We mentioned some shortcomings of JDK APIs and mentioned that there is a widely used Date and Time class library
Several relationships between classes and Classes
1. inheritance relationshipInheritance refers to the function that a class (called a subclass or sub-interface) inherits from another class (called a parent class or a parent interface) and adds its
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