----------------------------Java Training, Android training, look forward to communicating with you! -------------------------------Comparison and hashcode analysis of Arraylist_hashsetLook at the following three pieces of code:1. Define a Point class1 PackageCom.itheima.day1;2 3 Public classReflectpoint {4 Private intx;5 Public inty;6 7 PublicReflectpoint (intXinty) {8 Super();
without instantiation;
"= +" array member access symbol;Object member access symbols;"=" references (aliases);"=" assignment.
$ Variable name = new class name ([parameter]); instantiation;
$ variable Name, member property = value; Assign a value to a property;$ variable name, member property; Gets the attribute value;$ variable-name-member method; method of Use;
MySQL: Typically packaged in conn.php, then use require to the desired page.
1) $conn = Mysql_pconnec
Java from junior programmer to architect video, document, architecture design, large Web site architecture analysis, big Data analysis data, build high concurrency, high-powered architecture design materials need to contact me. Many catalogs are not listed (there are many catalogs in the QQ Space album) plus qq:1927360914650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/83/81/wKiom1d0uvSjzoUjAAD9Ud
I found that the key reason why many people cannot solve the problem efficiently is that they are not familiar with the tool, but they are not familiar with the tool, and even do not know how to find the tool. This is a big problem. I want to list a common tool that can be used by a Java programmer.
I. coding tools
1. Ide:EclipseOr idea, Familiar with as many shortcut keys as possible ,《List of common ecli
careful when using to prevent the subscript from crossing.4.3 String slicesSlices not only apply to strings, but also list, tuple and other collections, powerful, simple to use, to master the usage, the basic syntax is as follows:STR[I:J]
Contains the bottom boundary, not the upper boundary
The bottom boundary defaults to 0
The upper boundary defaults to the string length
In addition, The Shard also introduces a third value, stepping, so the default is not used when the st
variable. Select a variable and then enter the variable view (Variables view), and enter the value in its corresponding value joins according to the variable type.6. Stop execution inside the main functionIn the Run/debug settings, the Edit Configuration dialog box has the "main" tab, and we can tick the "Stop in Main" check box. If selected, when debugging a Java program based on the main method, the program stops executing at the first line of the
" check box. If selected, when debugging a Java program based on the main method, the program stops executing at the first line of the Main method.7. Environment variablesInstead of adding environment variables to System properties, we can easily add them in the Edit Configuration dialog box.8.Drop to FrameThis is one of my favorite features. During debugging, you can jump back to the beginning of the call
the ape friends, generally will be more impatient gas manic, the technical curiosity is strong, especially some tall technology, what big data, cloud computing, architecture, and so on, some biased to technical research, some biased in business. Most programmers may choose to be biased in favor of technical research, so they are less likely to be interested in business, and therefore feel that doing it every day is no fun. At this time, calm down to analyze what kind of direction you are. Can y
Basic components of the Java language1. KeywordsKeyword concept: A word that is given special meaning by Java.Features: The expression is English lowercase.The Java language is a strongly typed language that defines specific data types for each data and allocates different sizes of memory space in memory.1. Keywords for defining data typesBasic data types (four classes of eight):Integer type: byte short int
generic type Getgenerictype ()(4). Strong go to subclass Parameterizedtype (because the type does not have any corresponding methods)(5). Get generics True Type Getactualtypearguments ()11. Example:Package cn.itcast.day01;Import Java.lang.reflect.Field;Import Java.lang.reflect.ParameterizedType;Import Java.lang.reflect.Type;Import Java.util.HashMap;Import Java.util.Map;public class getgenerictypedemo{mappublic static void Main (string[] args) throws Exception {Class C = getgenerictypedemo.class
(double a,double b);//a B-square4, long round (double b); rounding5, double random (), greater than 0 is less than 1.0 of the stochastic number;1 PackageSystem;Do exercises2 /*given a decimal, keep the last n bits of the decimal point3 * 1, first multiplied by 10 of the N-square, and then rounded;4 * 2, divide this by 10 of the n-th square;5 */6 Public classXiaos {7 Public Static voidMain (string[] args) {8 //double D=baoniu (12.1564,2);9 //S
leave the application scope of the loop, and there is no point in existence.This two statement exists alone, there can be no statements below, because the execution is not done, compile error!We can get acquainted with break and continue through a little practice.1 //ask for the first three odd numbers within 10. 2 Static voidbreakandcontinue ()3 {4 intCount=0;5 for(inti=0;i)6 { 7 if(i%2==0)8
final modifier local variable : The value of the base type cannot be changed. Reference type: The address value of the reference type cannot be changed, but the value of the heap memory of the object can be changed. */class Student {int = 10;} Class Finaltest {public static void main (string[] args) {//local variable is the base data type int x = 10;x = 100; SYSTEM.OUT.PRINTLN (x); final int y = 10;//cannot assign a value to the final variable y//y = 100; System.out.println (y); System.ou
pt = (parameterizedtype) t;//strong go to its child class $ /**Panax Notoginseng * type[] getactualtypearguments () - returns an array of type objects that represent the actual type parameters of this type. the Type Getownertype () + returns a type object that indicates that the type is one of its members. A Type Getrawtype () the returns a Type object that represents a class or interface that declares this type. + */ - $t = Pt.getrawtype ();//class or interface of
then enter the variable view (Variables view), and enter the value in its corresponding value joins according to the variable type.6. Stop execution inside the main functionIn the Run/debug settings, the Edit Configuration dialog box has the "main" tab, and we can tick the "Stop in Main" check box. If selected, when debugging a Java program based on the main method, the program stops executing at the first line of the Main method.7. Environment varia
, if there is an exception in the subclass method, then only try cannot throws.C: The parent's method throws more than one exception, and the child's overriding method can only throw the same exception or subclass exception of the parent exception, and cannot throw away the parent class.(8): How to handle exceptionsPrinciple: If the problem can be handled within the function, there is a try, if not handled, referred to the caller, that is, with throws
. The next day, a meal with friends, chatted about the past, chatted about the future, we decided to rent a house, I think of high school, my other brother, is the former mentioned in Beijing, the girl who was in the study of the people who once liked, we always inseparable, also a fantasy, after graduation to a strange city, Looking for a job, a rent a house, a blow, I suddenly feel, that originally was four or five years ago, and now I have and another person live this life, and now we also o
record the association between the sequence number and the new object. gets the object reference associated with the sequence number when it encounters the same as the object with the previously saved sequence number x. Some data cannot be serialized, so they are marked as transient, and static is not serializable. a serializable class can add validation or other behavior to the default read-write behavior. private void ReadObject (Ojbectinputstream in) throws IOException, ClassNotFoundExceptio
I wish everyone a happy Wuyi Labor Day, work smoothly!It's time to summarize the dry goods last month, this month we brought a variety of Java technology dry, a variety of gift book Lottery benefits, a variety of face test sharing, a variety of latest news and other information.
5.1 Blockbuster Events | Blockchain free Book Planet Specials
The correct posture for the Java program to play logs
The m
Original address
Java SE 8 was released on March 18, 2014, while Java 9 is expected to be released in 2016;
December 2009, Java EE 6 released;
September 2004, J2SE 1.5 released;
May 2000, JDK1.3, JDK1.4 successively released;
January 1996, JDK1.0 re
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.