incrementoperator.java

来自「《A first book of java》by Gary J.Bronson 」· Java 代码 · 共 19 行

JAVA
19
字号
public class IncrementOperator
{
  public static void main(String[] args)
  {
    int count;
  
    count = 0;
    System.out.println("The initial value of count is "+ count);
    count++;
    System.out.println("   count is now " + count);
    count++;
    System.out.println("   count is now " + count);
    count++;
    System.out.println("   count is now " + count);
    count++;
    System.out.println("   count is now " + count);
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?