搜索资源列表
Sjx.java
- 编写一个三角形类,能根据3个实数构造三角形对象,如果三个实数不满足三角形的条件,则自动构造以最小值为边的等边三角形。输入任意三个数,求构造的三角形面积。-Preparation of a triangle class, according to three real objects constructed triangle, if the triangle does not meet the three conditions of a real number, is automatically
ArrayDemo
- (1) 声明数组 (2) 创建数组 (3) 初始化数组 (4) 输出数组 (5) 数组最大值、最小值及其索引 (6) 随机数组 (7) 从控制台接受任意个整数,以数组形式返回 (8) 数组到String 转化 (9) 扩张数组-(1) declare an array (2) create an array (3) initialize the array (4) the output array (5) an array of the m
java4
- 实验目的:1.使用Java applet 来显示信息。 2.创建并使用方法。 3.使用Math类的方法。 问题描述:一个停车库3小时以内,最低收费为$2.00。如果超过3小时,每小时增加$0.5。 24小时以内,最高收费为$10.00。假定没有车会一次停24小时以上。编写一个applet,计算并显示昨天每个在停车库停车客户的停车费用。应在一个JtextField中输入每个客户的停车时数。程序应显示客户的费用,并计算昨天的收入总额,将结果显示在状态栏中。程序应使用cal
Requirement
- ,要求:(以下3问编写到一个程序中) (1)输出这三个整数的最小值 (2)分别输出这三个整数是奇数还是偶数 (3)判断第三个整数是否是前两个整数积的倍数-Requirements: (to a program written in the following Q) (1) The minimum value of the output of the three integers (2) output the three integer is odd or even (3) to de
HanoiFolder
- Given a stack of n disks arranged largest on the bottom to smallest on top placed on a rod, together with two empty rods, the towers of Hanoi puzzle asks for the minimum number of moves required to move the stack one rod to another, where moves are a