number002.java

来自「我的JAVA, 不知道好不好,希望你可以改」· Java 代码 · 共 43 行

JAVA
43
字号

public class Number002
{
  static int number2;
  static double price=2.50;
  static String s="Robins in the Snow";
  static int max2;
  static int sell2;
  static int thismax(int b)
  {
    max2=b;
    return max2;
  }  
  static void getNumber(int b)
  {
    number2=b;
  }
  static int showmax()
  {
    return max2;
  }
  static void changeNumber(int a)
  {
    number2=number2-a;
    sell2=max2-number2;
  }
  static int thisNumber()
  {
    return number2;
  }
  static String thisorder()
  {
    return s;
  }
  static double thisPrice()
  {
    return price;
  }
  static int showsell()
  {
    return sell2;
  }
}

⌨️ 快捷键说明

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