1. Integrated development Tools idea
(1) IntelliJ idea: It is mainly used to support development tools in Java, Scala, Groovy and other languages, and has the technology and framework to support the current mainstream, and specializes in the development of enterprise applications, mobile applications and WEB applications.
(2) Jrebel:idea is not supported for hot deployment, the best solution for idea thermal deployment is to install the JRebel plugin.
(3) Idea basic operation:
--Create Project (single module Project): File-->new-->project, select Java enterprise--> in the New Project window tick Web application (Web project)-- Next--> input module name-->finish.
--Project configuration (multi-module project): File-->new-->project, select empty project-->next-->finish in the New Project window. Then click Add a Web application:exploded (output directory) in the Add Project module-->artifacts in the Select JDK version-->module in Project Structure-->project and double-click the right-most module.
(4) Idea basic configuration: file-->settings ..., you can set themes, fonts, plugins.
(5) Idea shortcut key:
--ctrl+shift + Enter, statement completion
-- alt+q, you can see the declaration of the current method
-- ctrl+p, can display parameter information
--ctrl+alt+v, you can introduce variables. For example: New String (); Automatic import of variable definitions
--ctrl+enter, import package, auto fix
--ctrl+shift+space, auto-complete code
--CTRL+X, deleting rows
--ctrl+d, copying rows
--ctrl+/or ctrl+shift+/, comments (//or/**/)
2. Operators
(1) Operator: a symbol that operates on constants and variables is called an operator.
(2) Expression: An expression that uses an operator to concatenate a constant or variable into a symbolic Java syntax can be called a formula.
(3) Arithmetic operation (* +,-, *,/,%,++,--).
(4) symbol The assignment operator (=,+=,-=,*=,/=,%=).
(5) The relational operator (==,!=,>,>=,<,<=).
(6) Logical operators (&,|,^,!,&&,| | ).
(7) Ternary operator (relationship expression) true expression 1:false expression 2;).
3. Keyboard input
(1) Keyboard input data steps:
-- A: Guide package (position on top of class definition) import Java.util.Scanner;
--b: Creating Objects Scanner sc = new Scanner (system.in);
--c: Receiving data int x = Sc.nextint (); String s = sc.next ();
Java Foundation--day02