合集-Java实验作业
YTUJAVA
摘要:最新一期的Java作业也发布与Github DWLLLL/Java_Homework (github.com) 阅读全文
posted @ 2022-11-06 21:23 ZZC12312321 阅读(67) 评论(0) 推荐(0)
Java封装一个ShowDate类,封装一个ComputerBig类,封装一个JavaComputerDate
摘要:第八题: 主类 public static void main(String[] args){ GregorianCalendar calendar = (GregorianCalendar) GregorianCalendar.getInstance(); ShowDate showDate = 阅读全文
posted @ 2022-10-13 16:13 ZZC12312321 阅读(42) 评论(0) 推荐(0)
Java扩充例题4.14的功能,实现两个矩阵的相加、减等;Java封装一个类MatrixLocation
摘要:近段时间Java所有作业、实验、万维都可以从DWLLLL/Java_Homework (github.com)上下载源码,无需任何注册。 进入后点击Code 选择Download ZIP 以压缩包的形式下载后,解压就可以得到所有源代码了。 第六题 所有矩阵的题目用二维数组实现都很简单,只有矩阵的逆比 阅读全文
posted @ 2022-10-08 15:55 ZZC12312321 阅读(48) 评论(0) 推荐(0)
Java编写一个仿真购买手机与手机卡的例子
摘要:Java本次作业所有源码放到Github上:DWLLLL/Java_Homework (github.com)https://github.com/DWLLLL/Java_Homework 点击绿色Code可以直接下载源码,无需复制操作。 编写一个仿真购买手机与手机卡的例子。 封装手机卡接口SIMa 阅读全文
posted @ 2022-10-02 10:48 ZZC12312321 阅读(56) 评论(0) 推荐(0)
Java封装一个接口Sortable,封装一个接口Instrument
摘要:9:在cn.com.my包中,封装一个接口Sortable,包括一个抽象方法int compare( Sortable s),表示需要进行比较大小,返回正数则表示大于,返回负数则表示小于,返回0则表示等于。封装一个类Student,要求实现此接口,必须重写接口中的抽象方法。Student 类中包括s 阅读全文
posted @ 2022-09-24 16:35 ZZC12312321 阅读(48) 评论(0) 推荐(0)
Java 封装MyStock,封装MyAccount,封装MyPoint
摘要:封装一个类MyStock存放在cn.com.my包中,这个类包括: 1 一个名为id的int数据字段表示股票代码;P96第四题 等等等 主函数中具体的数据可以自行修改 import cn.com.my.MyStock; public class NewMain { public static voi 阅读全文
posted @ 2022-09-07 20:57 ZZC12312321 阅读(111) 评论(0) 推荐(0)
ytu JAVA
摘要:/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Main; import Judge.Judge; /** * * @author use 阅读全文
posted @ 2022-08-31 15:02 ZZC12312321 阅读(31) 评论(0) 推荐(0)
YTU Java语言程序设计教程第二章课后题
摘要:第二题:封装一个Runner,按照以下步骤写出Java代码 import java.util.Scanner; public class Runner { static double miles; static double KILOMETER_PRE_MILE = 1.557; public st 阅读全文
posted @ 2022-08-30 21:20 ZZC12312321 阅读(34) 评论(0) 推荐(0)