⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moins.java

📁 在Java中实现数字的加、减、乘、除等运算。
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package calculatrice;/** * * @author Loïc */public class Moins {            public void operer(Pile p){         int val1=0;         int val2=0;     if(p.estvide()==false){          val1=p.depiler();          val2=p.depiler();         p.empiler(val1-val2);        }    }     public String afficher(){        return "-";    }                 public static void main(String args[]){    /*test de la methode operer*/            Pile p=new Pile(3);        Moins s=new Moins();        int res;        p.empiler(1);        p.empiler(2);        s.operer(p);        res=p.depiler();        System.out.println(res);}}

⌨️ 快捷键说明

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