365热榜

jdk8新特性lambda

jdk8新特性简介: 1.速度更快 2.操作更简单 3.强大的stream api 4.便于并行操作 5.最大化减少空指针异常optional lambda作用 1.从匿名类到lambda的转换 https://img blog.csdnimg.cn/09dc36b5cda04e1487012e8539e4e4c9.png 2.使用lambda做参数传递 https://img blog.csdnimg.cn/4e403f6404a94dc5aa693de80b462802.png   Lamb...

2022-05-21 | Hide on jdk | 720浏览

算法题JavaScript(字符串转换成整数)

请你来实现一个 myAtoi string s 函数,使其能将字符串转换成一个 32 位有符号整数(类似 C/C++ 中的 atoi 函数)。 函数 myAtoi string s 的算法如下: 读入字符串并丢弃无用的前导空格 检查下一个字符(假设还未到字符末尾)为正还是负号,读取该字符(如果有)。 确定最终结果是负数还是正数。 如果两者都不存在,则假定结果为正。 读入下一个字符,直到到达下一个非数字字符或到达输入的结尾。字符串的其余部分将被忽略。 将前面步骤读入的这些数字转换为整数(即,“12...

2022-05-21 | 明灭18 | 587浏览

Java笔记3(内部类,API)

Java 内部类 1 1、内部类的概述 1 2 2、内部类之一:静态内部类(了解) 2 5 3、内部类之二:成员内部类(了解) 3 78 4、内部类之三:局部内部类(了解) 4 187 5、内部类之四:匿名内部类(重点) 5 229 5.1、匿名内部类常见的使用形式 51 267 5.2、匿名内部类在开发中的使用场景演示 52 317 API API 361 1、常用API Object的toString方法 1APIObjecttoString 364 2、常用API Object的equa...

2022-05-21 | 明灭18 | 144浏览

Java笔记2(多态,抽象类,接口)

Java 多态 1 1、多态概述 1 2 2、多态的成员访问特点 2 5 3、多态的好处和弊端 3 54 4、多态的转型 4 152 5、多态综合案例 5 203 抽象类 360 1、抽象类概述 1 361 2、抽象类的案例 2 365 3、抽象类的特征和注意事项 3 462 4、final和abstract的关系 4finalabstract 464 5、抽象类的应用知识:模板方式模式 5 466 接口 542 1、接口的概述,特点 1 543 2、接口的用法 2 565 3、基本小结 及 ...

2022-05-21 | 明灭18 | 719浏览

Linux 入门及常见Shell命令

Linux体系结构 Linux体系结构:用户态(用户上层活动)和内核态 内核:本质是一段管理计算机硬件设备的程序 系统调用:内核的访问接口,是一种能再简化的操作 公用函数库:系统调用的组合拳 uname  a  man 2 syscalls /  系统调用 man 2 acct  man 3 /  公共库函数 Shell:命令解释器,可编程 这个是常考点,充当用户的界面 ls  lrt which ls cat less more vi vim echo $SHELL cat /etc/she...

2022-05-21 | InfoQ | 153浏览

docker线上问题处理

场景 客户端突发登录不上 排查步骤 查看服务日志以及网络连通性都比较正常,抓包看也没有丢包现象。 查看网卡信息发现有多条虚拟网卡记录,且IP一样 解决办法,手动删除虚拟网卡 ip link delete br 4f875751b353

2022-05-21 | 早九晚十二 | 535浏览

【Java每日一题,容器+暴力优化】csp202109-2 非零段划分

Introduction https://img blog.csdnimg.cn/385a71ef59d44cd9b6e2f083e22df820.png Input https://img blog.csdnimg.cn/cd0592559e3644c895911ad4ee35bfcd.png Output https://img blog.csdnimg.cn/aff05328144b41c1bc4d98b2339a1062.png Sample input 11 3 1 2 0 0 2 ...

2022-05-21 | 小梁说代码 | 429浏览

Beiyu 22 spring public elective course - situation and policy (this) assignment_ two

https://img blog.csdnimg.cn/1d8fac0abd774960a5dcb348215b007f.png  

2022-05-22 | Teln_ Xiao Kai | 365浏览

Beiyu 22 spring computer major advanced mathematics (Ben) homework_ three

https://img blog.csdnimg.cn/71461d7ce221407aa5d5ed5470674ccc.png  

2022-05-22 | Teln_ Xiao Kai | 139浏览

Beiyu 22 spring public elective course - situation and policy (this) assignment_ one

https://img blog.csdnimg.cn/6a272dfbadb2483faeee1ec43990b571.png  

2022-05-22 | Teln_ Xiao Kai | 724浏览

Beiyu 22 spring computer major advanced mathematics (Ben) homework_ four

https://img blog.csdnimg.cn/27932a7b02fa4e4aabb10cf47a3869eb.png  

2022-05-22 | Teln_ Xiao Kai | 793浏览

The first note of JUC -- java thread

1、 preheating idea newly build maven engineering ,pom.xml as follows : properties maven.compiler.source 8 /maven.compiler.source maven.compiler.target 8 /maven.compiler.target /properties dependencies dependency groupId org.projectlombok /groupId a...

2022-05-22 | Sponge ape treasure | 915浏览

Spring AOP concept

80cadfe52f334a23ab2ba425180b775e.jpg https://img blog.csdnimg.cn/80cadfe52f334a23ab2ba425180b775e.jpg One . Preface         In previous projects , Pay little attention to spring aop The concrete realization and theory of , It's just a simple unde...

2022-05-22 | xmh-sxh-1314 | 831浏览

Redis cluster principle

redis Shortcomings of Sentinels : 1. When master When the node goes down , The Sentinels were re elected master It can lead to redis The service cannot provide external services , This is a very serious problem . 2. only one master, With high concurr...

2022-05-22 | Hide on jdk | 335浏览

Redis persistence and master-slave sentinel mechanism

1. Persistence : RDB snapshot (snapshot) By default , Redis Save the memory database snapshot under the name dump.rdb In the binary file of / save 60 2000 // close RDB Just put all the save Save the policy and comment it out Redis In the meet ...

2022-05-22 | Hide on jdk | 387浏览

The archives of the American Computer Association (ACM) digital library has been open for 50 years

GettyImages 185096932 800x480.jpg The chief executive of the organization Vicki L. Hanson Pointed out that ,ACM The digital library project is to 2025 Part of a broader effort to make its archives available through open access .Hanson say :' Our ...

2022-05-22 | Chinese industry information station | 467浏览

JavaFX: system tray

JavaFX: System tray JavaFX Video tutorial 211 course , Make system tray id from=333.788 GITHUB: dustinkredmond / FXTrayIcon SystemTray System tray jdk in java.awt.SystemTray SystemTray systemTray = SystemTray.getSystemTray ; https://img blog...

2022-05-22 | xhBruce | 896浏览

Docker online problem handling

scene The client suddenly fails to log in Troubleshooting steps It is normal to check the service log and network connectivity , There is no packet loss in packet capturing . Check the network card information and find multiple virtual netwo...

2022-05-22 | Nine in the morning and twelve in the evening | 267浏览

Java note 3 (internal class, API)

Java Inner class 1 1、 An overview of inner classes 1 2 2、 One of the inner classes : Static inner class ( understand ) 2 5 3、 Inner class two : Member inner class ( understand ) 3 78 4、 Inner class three : Local inner classes ( understand ) 4 187...

2022-05-22 | Mingmie 18 | 554浏览

Introduction to Linux and common shell commands

Linux Architecture Linux Architecture : User mode ( User activities ) And kernel state kernel : In essence, it is a program that manages computer hardware devices system call : The access interface of the kernel , It's an operation that can be ...

2022-05-22 | InfoQ | 637浏览