📄 assignit.java
字号:
//Copyright (c) 1998, Arthur Gittleman
//This example is provided WITHOUT ANY WARRANTY either expressed or implied.
/* Declare two integer variables with initial values.
* Assign a new value to the second variable.
* Output the new value.
*/
public class AssignIt {
public static void main(String [] args) {
int number1 = 25;
int number2 = 12;
number2 = number1 + 15;
System.out.print("number2 is now ");
System.out.println(number2);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -