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.