码迷,mamicode.com
首页 >  
搜索关键字:static final    ( 52231个结果
flutter 获取安卓手机定位 失败(仅安卓、仅定位)
1:使用 插件 geolocator ,官网 https://pub.dev/packages/geolocator 2:按照官网配置,代码照抄 static Future<FlutterLocation> determinePosition() async { bool serviceEnable ...
分类:移动开发   时间:2021-04-21 11:46:27    阅读次数:0
Leetcode 1079 活字印刷 回溯
回溯解法,JAVA: public final int numTilePossibilities(String tiles) { Set<String> set = new HashSet<String>(); search(tiles.toCharArray(), "", tiles.length ...
分类:其他好文   时间:2021-04-20 15:41:31    阅读次数:0
java 的变量,常量,作用域!
public class Dome12 { //变量:可以变化的量 //java 是一种强类型语言,每个变量必须声明其类型 //java 变量是程序中最基本的存储单元,其元素包括变量名,变量类型和作用域 //注意事项: //1.每个变量都有类型,类型可以是基本类型,也可以是引用类型(String) ...
分类:编程语言   时间:2021-04-20 15:39:43    阅读次数:0
Java面向对象
this关键字 this关键字的作用: @Data public class jtest { private String name; public jtest(){ //调用构造方法,只能在构造方法中使用,且必须是第一行 this("dwx"); } public jtest(String nam ...
分类:编程语言   时间:2021-04-20 15:11:01    阅读次数:0
CountDownLatch 和 CyclicBarrier
CountDownLatch 每次当线程调用countDownLatch.countDown()方法时,会对计数器减1,减到0,countDownLatch.await()放行 public class CountDownLatchTest { public static void main(Str ...
分类:其他好文   时间:2021-04-20 15:06:35    阅读次数:0
jQuery练习
需求:点击按钮,显示文本和隐藏文本 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>jQuery 入门</title> <script src="/static/jQuery-1.11/jquery-1.11 ...
分类:Web程序   时间:2021-04-20 14:39:19    阅读次数:0
4.单例模式的五种实现
1.饿汉式,这种方式不推荐,会造成资源的浪费。 public class Hungry { private Hungry(){ } private static Hungry hungry = new Hungry(); public static Hungry getInstance(){ ret ...
分类:其他好文   时间:2021-04-20 14:07:56    阅读次数:0
多态多态多态多态 的 向上转型 一个小栗子....
public class Main { public static void main(String[] args) { test test = new test(); test.xxx(new zi()); } } class fu{ public void x(){ System.out.pri ...
分类:其他好文   时间:2021-04-20 14:06:09    阅读次数:0
状态模式
public class StatePattern { public static void main(String[] args) { Context context=new Context(); for (int i = 0; i < 10; i++) { context.handle(); } ...
分类:其他好文   时间:2021-04-19 16:06:54    阅读次数:0
Java常用类:System类
Java常用类:System类 System 系统类主要用于获取系统的属性数据和其他操作,构造方法私有 常用方法 方法名 说明 static void arraycopy(); 复制数组 static long currentTimeMillis(); 获取当前系统时间,返回的是毫秒值 static ...
分类:编程语言   时间:2021-04-19 15:47:34    阅读次数:0
52231条   上一页 1 ... 40 41 42 43 44 ... 5224 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!