![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
#Java学习
Reignsky_
这个作者很懒,什么都没留下…
展开
-
JAVA上机任务十二(网络编程)
JAVA日常上机任务原创 2022-06-16 10:46:44 · 134 阅读 · 1 评论 -
JAVA上机任务11(IO流)
JAVA日常上机任务原创 2022-06-08 17:56:22 · 134 阅读 · 0 评论 -
JAVA上机任务九(集合框架中-堆栈)
题目为:Java实现:import java.util.Stack;class Bullet{ int id; public Bullet(int id) { this.id = id; }}class Magazine{ Stack<Bullet> bulletStack = new Stack<>(); Boolean pushBullet(Bullet b){ if (bulletS原创 2022-05-25 17:50:05 · 97 阅读 · 0 评论 -
JAVA上机任务八(泛型)
泛型泛型是带一个或多个类型参数(type parameters)的类或者接口, 其声明的格式为: class 类名称<泛型列表>泛型列表中可以有任意多个泛型,中间用逗号间隔,它们可以是任何 类或接口,但不能是基本类型数据。第一题源代码:public class shangji08 { public static class People<E> { pri...原创 2022-05-24 16:45:48 · 168 阅读 · 0 评论 -
JAVA上机任务七(多线程)
源代码:public class java0511 { public static class Bank { private int rest = 10000; void deposit() { for (int i = 0; i < 12; i++) { rest = rest + 5000; System.out.println(Thread.currentTh..原创 2022-05-16 11:08:10 · 215 阅读 · 0 评论