Java Foundation--day02

Source: Internet
Author: User

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

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.