自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 2021-05-14

Collection 接口和 Collections 类都是做什么用的 ?Collection:集合的抽象数据类型​ Collections:包含有关集合操作的静态方法Collection 接口有几个子接口 ?Map 接口有父接口么 ?三个 没有父接口List 、 Set 、 Map 三个接口有什么特点 ?List:有序;元素都有牵引,元素可以重复Set:可以容纳所有类型的对象,包括null,..

2021-05-14 10:58:41 216

原创 泛型作业 2021-05-14

1.为什么使用泛型 ?只有指定类型才可以添加到集合中:类型安全 读取出来的对象不需要进行强制转换:便捷2 . Java 虚拟机支持泛型么 ? 什么是泛型擦除 ?不支持 Java的泛型处理过程都是在编译器中进行的,编译器首先会生成bytecode码,这个过程是不包括泛型类型,泛型类型在编译的时候是被擦除的,这个过程及泛型擦除3 . 怎么使用泛型 ?其主要原理是在类声明时,通过一个标识表示类中的某个属性类型或者是某个方法的返回值及参数类型,这样在类声明或者实例化话只要指定好需要的具体

2021-05-14 10:17:12 86

原创 Java基础思维导图

2021-04-17 18:58:21 89

原创 图书管理系统

用 图 书 管 理 系 统"); System.out.println("**************************************"); System.out.println("1. 新 增 图 书"); System.out.println("2. 查 看 图 书"); System.out.println("3. 删 除 图 书"); System.out.pri.

2021-04-16 09:08:01 54

原创 人机猜拳

package 猜拳游戏;import java.util.Scanner;public class Game { ComputerPlayer com; PeoplePlayer peo; int count;//计算轮数 public Game() { // TODO Auto-generated constructor stub com=new ComputerPlayer(); peo=new PeoplePla

2021-04-16 09:04:49 71

原创 2021-04-11

package com.company;import java.util.Scanner;public class csk18 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //初始化书本信息 String[] bookNames = new String[6]; int[] borrowDates = new in

2021-04-11 20:51:44 53

原创 2021-03-31

package com.shop;import java.util.Scanner;/** * @author huyuansong * @date 2021/3/18 8:59 */public class Login { public static void main(String[] args) { System.out.println("**************************"); System.out.println("\t\t

2021-04-07 15:11:56 29

原创 2021-03-29 课堂笔记

package com.shop;import java.util.Scanner;/** * @author huyuansong * @date 2021/3/18 8:59 */public class Login { public static void main(String[] args) { System.out.println("**************************"); System.out.println("\t\t

2021-04-07 15:08:01 65 2

原创 2021-03-30 课堂笔记

public class Main { // 判断密码是否大于6位 //字符串求长度 是方法 length()

2021-04-07 15:06:21 36

原创 2021-04-01课堂笔记

// equals() 用于判断字符串的值是否相等public class demo01 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("请输入用户名:"); String name = scanner.next(); System.out.println("请输入密码.

2021-04-07 15:05:07 54 2

原创 2021-03-24课堂笔记

package edu.xcdq;import java.util.Scanner;public class jinji { public static void main(String[] args) { System.out.println("迷你游戏平台>游戏晋级"); Scanner scanner = new Scanner(System.in); String shifou = ""; int count =

2021-04-07 15:04:06 78

原创 2021-03-25 课堂笔记

public static void main(String[] args) { int [] array1 = {8,4,2,1,23,344,12}; int sum = 0; for (int i = 0; i < array1.length; i ++){ System.out.println(array1[i] + "\t"); sum += array1[i]; } .

2021-04-07 15:02:01 48

原创 2021-03-23 课堂笔记

public static void main(String[] args) { /** * 插入新元素,依旧保持原数组有序 */ int [] scores = new int[7]; scores[0] = 99; scores[1] = 88; scores[2] = 77; scores[3] = 66; scores[4] = 55; .

2021-04-07 15:00:12 41

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除