回到顶部 一、小案例分析 1、功能需求: 现有一个员工,姓名为Rick,年龄22,ID为193211,如何创建10个完全相同的对象。 2、小菜鸡的答案: (1)直接new 10个对象就完了。(2)代码实现: package prototype.pattern; public class Demo { ...
分类:
其他好文 时间:
2021-02-16 11:49:00
阅读次数:
0
勤奋能够弥补聪明的不足,但聪明无法弥补懒惰的缺陷。你好,我是梦阳辰!期待与你相遇! 概述 JUC就是java.util .concurrent工具包的简称,俗称java并发包。这是一个处理线程的工具包,JDK 1.5开始出现的. 01.Java多线程复习 Interface Lock Lock实现提 ...
分类:
其他好文 时间:
2021-02-16 11:41:02
阅读次数:
0
Most people have already heard about the new “async” and “await” functionality coming in Visual Studio 11. This is Yet Another Introductory Post. Firs ...
分类:
其他好文 时间:
2021-02-15 12:36:36
阅读次数:
0
来源:https://www.bilibili.com/video/BV1V4411p7EF?p=20 感谢老师! package com.hao.syn; //三个线程操作同一个资源 //线程不安全,出现负数。。。sleep放大不安全情况 public class UnsafeBuyTickets ...
分类:
编程语言 时间:
2021-02-15 12:33:30
阅读次数:
0
资料1: https://wladimir-tm4pda.github.io/source/git-repo.html sync命令: repo sync [project-list ] Downloads new changes and updates the working files in y ...
分类:
其他好文 时间:
2021-02-15 12:26:44
阅读次数:
0
1.需求 /** * 需求:每两个元素输出一次 */2 代码 package com.nx.streaming.lesson03; import org.apache.flink.api.java.tuple.Tuple2; import org.apache.flink.streaming.api ...
分类:
其他好文 时间:
2021-02-15 12:25:40
阅读次数:
0
spring boot集成swagger2 pom依赖 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.6.1</version> </depend ...
分类:
编程语言 时间:
2021-02-15 12:24:14
阅读次数:
0
JAVA流程控制 Scanner对象 通过Scanner类来获取用户的输入 Scanner s = new Scanner(System.in); 通过Scanner类的next()与nextLine(方法获取输入的字符串,在读取前 我们一般需要使用hasNext()与hasNextLine()判断 ...
分类:
编程语言 时间:
2021-02-15 12:17:43
阅读次数:
0
1.重命名 git branch -m oldBranchName newBranchName 2.删除远程分支:git push origin :oldBranchName 3.将重命名过的分支提交:git push origin newBranchName 4.新建分支 : git branch ...
分类:
其他好文 时间:
2021-02-15 12:07:38
阅读次数:
0
1 在main.js中添加如下代码 import Vue from 'vue' import App from './App.vue' import router from './router' // 路由发生变化修改页面title router.beforeEach((to, from, next ...
分类:
其他好文 时间:
2021-02-15 12:02:51
阅读次数:
0