ArrayList实现 code import java.util.ArrayList; import java.util.Collections; public class PokerDemo { public static void main(String[] args) { // 使用Arra ...
分类:
编程语言 时间:
2021-06-02 16:52:04
阅读次数:
0
public class HelloWorld { public static void main(String[] args) { //大小写十分敏感 String Man="qinjiang"; String man="qinjiang"; String Ahello="qinjiang"; S ...
分类:
其他好文 时间:
2021-06-02 16:40:41
阅读次数:
0
题目 package whale.leetcode.simple; /** * @Author: WhaleFall541 * @Date: 2021/5/29 20:30 */ public class AddTwoSumLinkedList { public static class ListN ...
分类:
其他好文 时间:
2021-06-02 16:21:23
阅读次数:
0
1.变量名的作用域(the scope of name) 对象的生命周期(the lifetime of an object) 2.各源文件(.cpp)可以单独编译得到目标代码(.obj),所有目标代码链接得到可执行程序(.exe) 3.局部静态对象 local static objects 在通过 ...
分类:
编程语言 时间:
2021-06-02 15:48:31
阅读次数:
0
1.ip public class TestInetAddress { public static void main(String[] args) { try { //查询本机IP,可以new InetAddress byName = InetAddress.getByName("localhos ...
分类:
Web程序 时间:
2021-06-02 15:28:12
阅读次数:
0
public class app17_22 { private static String driver = "com.mysql.jdbc.Driver"; private static String url = "jdbc:mysql://localhost:3306/k"; private s ...
分类:
其他好文 时间:
2021-06-02 15:10:03
阅读次数:
0
from fastapi.staticfiles import StaticFiles app.mount(path='/coronavirus/',app=StaticFiles(directory=' ./coronavirus/static', name='static')) ...
自动化开发部署和测试 在之前章节中有一个IsValid方法,检查银行账号是是否符合校验码要求,由于这种方法很容易出现代码错误,都会写一个短小的程序来测试验证此方法。 class Program { [STAThread] static void Main(string[] args) { strin ...
分类:
其他好文 时间:
2021-06-02 14:49:27
阅读次数:
0
//1. ES5 闭包实现单例模式 let singleton = (function(){ let instance = null; return function(name){ this.name = name; instance = instance? instance : this; ret ...
分类:
编程语言 时间:
2021-06-02 14:36:57
阅读次数:
0
详细 参考 https://cxyroad.blog.csdn.net/article/details/113777629 2.重量级锁 重量级锁是我们常说的传统意义上的锁,其利用操作系统底层的同步机制去实现Java中的线程同步。 重量级锁的状态下,对象的mark word为指向一个堆中monito ...
分类:
其他好文 时间:
2021-06-02 14:21:38
阅读次数:
0