自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

青年有志

致力分享 AI 领域知识经验

  • 博客(569)
  • 收藏
  • 关注

原创 Java枚举(enum)

除了 EnumSet,还有 EnumMap,是一个专门针对枚举类型的 Map 接口的实现类,它可以将枚举常量作为键来使用。由于枚举是 final 的,所以可以确保在 Java 虚拟机中仅有一个常量对象,基于这个原因,我们可以使用“==”运算符来比较两个枚举是否相等,参照 isBasketballPlayer() 方法。“如果枚举中需要包含更多信息的话,可以为其添加一些字段,比如下面示例中的 name,此时需要为枚举添加一个带参的构造方法,这样就可以在定义枚举时添加对应的名称了。

2024-05-04 21:11:45 1032

原创 适配器模式

适配器模式是一种,它允许将不兼容的对象转换成可兼容的接口。主要目的是解决在不改变现有代码的情况下,使不兼容的接口之间能够正常工作,通过创建一个中间转换的适配器来将一个对象转换成我们所需要的接口。适配器就是一种适配中间件,它存在于不匹配的二者之间,用于连接二者。简单理解就是转换器、转接口的存在。举个真实的例子,读卡器是作为内存卡和笔记本之间的适配器。您将内存卡插入读卡器,再将读卡器插入笔记本,这样就可以通过笔记本来读取内存卡。

2024-04-24 17:09:43 965

原创 Lesson 56 Faster than sound! 比声音还快!

旧式汽车的比赛每年举行一次。去年有很多汽车参加了这项比赛。最漂亮的汽车之一是罗尔斯-罗伊斯生产的银鬼汽车,而最不寻常的一辆则要属只有3只轮子的奔驰牌汽车了。该车造于1885年,是参赛车中最老的一辆。在好一阵喧闹的爆炸声之后,比赛开始了。很多汽车在途中就抛了锚,而有些驾驶员花在汽车底下的时间比坐在汽车里面的时间还长。获胜的那辆车达到了时速40英里——远远超过任何对手。它在接近终点时,冲下了山坡,驾驶员费了好大劲才把车停下来。它虽然与现代汽车比赛大不相同,但激动人心的程度并不亚于现代汽车大赛。

2024-04-23 08:13:19 305

原创 Lesson 57 Can I help you,madam?你要买什么,夫人?

她虽然犹豫了片刻,但终于还是走进了商店,要求把陈列在橱窗里的一件衣服拿给她看。接待她的售货员不喜欢她的那副打扮,轻蔑地看了她一眼后,便告诉她那件衣服已经卖出去了。这位妇女怒气冲冲地走出了商店,决定第二天教训一下那个售货员。第二天上午,她又来到这家商店,穿了一件裘皮大衣,一只手拎着一只手提包,另一只手拿着一把长柄伞。找到那个无礼的售货员后,她还要看昨天的那件衣服。那个售货员没有认出她是谁,这一回接待她的态度非常殷勤。她开心地迫使那位售货员把橱窗里几乎所有的东西都拿了出来,最后才买下了她最先要看的那一件。

2024-04-23 08:11:54 360

原创 Lesson 58 A blessing in disguise?是因祸得福吗?

Lesson 58 A blessing in disguise?是因祸得福吗?

2024-04-19 08:56:49 127

原创 Lesson 59 In or out? 进来还是出去?

Lesson 59 In or out? 进来还是出去?

2024-04-19 08:55:10 211

原创 Lesson 60 The future 卜算未来

Does what Madam Bellinsky said come true?

2024-04-19 08:53:01 104

原创 Maven 单元测试

Maven 单元测试

2024-04-08 11:15:14 1148

原创 JUnit4 / JUnit 5 全面详解【单元测试、Maven】

JUnit4 / JUnit 5 全面详解【单元测试、Maven】

2024-04-08 11:13:26 1867

原创 Maven 专栏导航

专注技术,少走弯路——原创作者:青年有志🎉有足够的积累,并且一直在路上,就有无限的可能!!!👨‍🎓💯。

2024-04-06 09:47:28 240

原创 Lesson 61 Trouble with the Hubble 哈勃望远镜的困境

What is the special importance of a telescope in space?

2024-03-28 09:12:29 129

原创 Lesson 62 After the fire 大火之后

What was the danger to the villages after the fire?

2024-03-28 09:09:40 190

原创 Lesson 63 She was not amused 她并不觉得好笑

Why did Jenny want to leave the wedding reception?

2024-03-28 09:07:21 85

原创 Lesson 64 The Channel Tunnel 海峡隧道

Why was the first tunnel not completed?

2024-03-25 08:47:56 148

原创 Lesson 65 Jumbo versus the police 小象对警察

Why did the police have to push Jumbo off the main street?

2024-03-25 08:46:07 207

原创 Lesson 1 A puma at large 逃遁的美洲狮

Where must the puma have come from?

2024-03-23 09:42:14 140

原创 Lesson 66 Sweet as honey! 像密一样甜!

What was sweet as honey and why?

2024-03-23 08:19:40 119

原创 Lesson 67 Volcanoes 火山

Why does Tazieff risk his life like this?

2024-03-23 08:17:07 89

原创 IDEA生成UML类图(PlantUML)

IDEA 从 【FIle→Settings→Plugins→Marketplace】 进入到插件下载界面,搜索PlantUML,点击 “install” 下载最上面的两个插件和,下载完毕后重启idea。

2024-03-22 10:23:23 8535

原创 Lesson 68 Persistent 纠缠不休

Why did Elizabeth tell Nigel that she was going to the dentist?

2024-03-22 09:12:27 138

原创 Lesson 69 But not murder! 并非谋杀!

Why?

2024-03-21 09:05:54 104

原创 Lesson 70 Red for danger 危险的红色

How was the drunk removed from the ring?

2024-03-21 08:59:29 149

原创 Lesson 71 A famous clock 一个著名的大钟

Has Big Ben ever gone wrong?

2024-03-21 08:56:03 150

原创 Lesson 72 A car called Bluebird “蓝鸟”汽车

What mistake was made?

2024-03-21 08:54:16 98

原创 Lesson 73 The record-holder 纪录保持者

Did the boy go where he wanted to?

2024-03-21 08:52:20 111

原创 Lesson 74 Out of the limelight 舞台之外

Why was their disguise‘too perfect’?

2024-03-21 08:50:21 191

原创 Lesson 75 SOS 呼救信号

course n. 课程;行动方式,处理方法;(砖、石等墙的)层;(常 sing.)追踪狩猎。

2024-03-12 16:17:03 150

原创 Lesson 76 April Fool‘s Day 愚人节

said the voice of the television announcer,这是一句倒装句,正常语序是:the voice of the television announcer said。之所以倒装,是为了避免句子头重脚轻,而且同时可以兼顾整个句子的倒装的完整性,因为said之前的to do结构其实是said的宾语,这相当于是个完全倒装的句子。we’re going over to the macaroni fields of Calabria. go over,在这里表示电台节目的“转向”。

2024-03-10 11:16:16 272

原创 Lesson 77 Asuccessful operation 一例成功的手术

Did the doctors find out how the woman died?

2024-03-06 09:20:55 150

原创 Lesson 78 The last one? 最后一枝吗?

For how long did the writer give up smoking?

2024-03-06 09:18:53 286

原创 Lesson 79 By air 乘飞机

Why did the plane turn back?

2024-03-06 09:16:57 161

原创 Lesson 80 The Crystal Palace 水晶宫

How many people visited the Great Exhibition of 1851?

2024-03-06 09:15:10 210

原创 Lesson 81 Escape 脱逃

else 是形容词,常跟在疑问代词或不定代词后表示“另外的/其他的/别的/还有”,用作这类词的后置定语。When he had killed the guard, the prisoner of war quickly dragged him into the bushes. 这是一个含有时间状语从句的复合句,根据英语的习惯,人称代词要放在从句中,所代的名词要放在主句当中。as quickly as he could (do). 像他能够做到的那样快(即:尽可能地快)第一个as是副词,表示程度。

2024-03-05 20:49:53 306

原创 Lesson 82 Monster or fish? 是妖还是鱼?

What was the monster called?

2024-03-03 10:19:18 133

原创 Lesson 83 After the elections 大选之后

Why did Patrick keep on asking the same question?

2024-03-03 10:17:10 75

原创 Lesson 84 On strike 罢工

Who will be driving the buses next week?

2024-03-03 10:15:20 113

原创 Lesson 85 Never too old to learn 活到老学到老

How long has Mr. Page been teaching?

2024-03-03 10:12:08 74

原创 2007,TCYB,Scaling Genetic Programming to Large Datasets Using Hierarchical Dynamic Subset Selection

论文年份:2007,论文被引:

2024-03-02 21:17:43 872

原创 2013,CEC,Using semantics in the selection mechanism in GP: promoting semantic diversity

论文年份:2013,论文被引:

2024-03-02 20:32:38 725

原创 1994,PPSN,Dynamic training subset selection for supervised learning in Genetic Programming

论文年份:1994,论文被引:

2024-03-02 20:07:30 848

Spring6-课件与资料

视频地址:https://www.bilibili.com/video/BV1kR4y1b7Qc/?spm_id_from=333.337.search-card.all.click&vd_source=0d2c67cd5361bad79f1ba0494e00f60e

2024-02-23

Maven-尚硅谷课件与代码

视频地址:https://www.bilibili.com/video/BV1JN411G7gX/?spm_id_from=333.337.search-card.all.click&vd_source=0d2c67cd5361bad79f1ba0494e00f60e

2024-02-21

JAVA基础-尚硅谷课件资料

视频链接地址:https://www.bilibili.com/video/BV1PY411e7J6/

2024-02-21

空空如也

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

TA关注的人

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