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

📄 梯形.java

📁 java源程序,两个类之间的函数转换,实现相应功能
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package 阶段练习一;/** * * @author lenovo */public class 梯形 {    float 上底,下底,高,面积;    梯形(float x,float y,float h) {  上底=x;       下底=y;       高=h;    }    float 计算面积() {  面积=(上底+下底)*高/2.0f;       return 面积;    }    void 修改高(float height) {  高=height;    }    float 获取高() {  return 高;    }}

⌨️ 快捷键说明

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