number001.java

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

JAVA
48
字号

public class Number001
{
  static int number1;
  static double price=3.99;
  static String s="Happy Snowman";
  static int max1;
  static int sell1;
  static int thismax(int b)
  {
    max1=b;
    return max1;
  }  
  static void getNumber(int b)
  {
    number1=b;
  
  }
  static void changeNumber(int a)
  {
    number1=number1-a;
    sell1=max1-number1;
  }
  
  static String thisorder()
  {
    return s;
  }
  static double thisPrice()
  {
    return price;
  }
  static int showsell()
  {
    return sell1;
  }
  static int showmax()
  {
    return max1;
  }
  static int thisNumber()
  {
    return number1;
  }

}

  

⌨️ 快捷键说明

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