001Java input, eclipse shortcut, 001 javaeclipse

Source: Internet
Author: User

001Java input, eclipse shortcut, 001 javaeclipse

Content: Implements keyboard input in Java and common shortcut keys in eclipse

######################################## ####################################### 3

No input was found when learning Java, unlike python input and C scanf. I saw some exercises later.

Struct = new struct (System. in); int a = gradient. nextInt (); System. out. println ("input is" + a); struct. close ();

 

######################################## ######################################## #####

Eclipse shortcut

Most commonly used: Automatic completion: Alt +/Note: Ctrl +/new row: Shift + press ENTER cancel: Ctrl + z

 

Others are used for note-taking between me.

1. Import package: Ctrl + Shift + O

2. Alt + left and right direction keys
We often encounter situations where we read the code by pressing Ctrl + left-click, trace them layer by layer, and then get lost in the Code. In this case, we only need to press "Alt + Left-direction key" to return to the last read position, similarly, pressing "Alt + right arrow key" will move forward to the returned reading position, just like the browser's
The forward and backward buttons are the same.

3. shift + enter and ctrl + shift + enter
Shift + enter creates a blank row under the current row, regardless of whether the cursor is at the end of the row. Ctrl + shift + enter insert a blank row before the current row.

4. Press Ctrl + Shift + S to bring up the source menu

5. Ctrl + Shift + X change to uppercase Ctrl + Shift + Y decrease write

6. Cancel Ctrl + Z

7. Ctrl + Shift + C comments

8,

Batch Rename of the same name

 

9. hover over the display class information. If it is disabled, F2 will display

 

In general, Baidu usually needs to be used directly. Remember it when you read it and use it.

 

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.