📄 assignops.java
字号:
//Copyright (c) 1998, Arthur Gittleman
//This example is provided WITHOUT ANY WARRANTY either expressed or implied.
/* Uses the operators which combine arithmetic and assignment */
public class AssignOps {
public static void main(String [ ] args) {
int a=2, b=4, x=3, y=5, z=6, w=14;
y -= 7;
System.out.println("y = " + y);
a *= x;
System.out.println("a = " + a);
x /= y;
System.out.println("x = " + x);
w %= z;
System.out.println("w = " + w);
b *= z + 3;
System.out.println("b = " + b); }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -