码迷,mamicode.com
首页 >  
搜索关键字:string or number    ( 118627个结果
CompletableFuture 使用详解
1、 runAsync 和 supplyAsync方法 CompletableFuture 提供了四个静态方法来创建一个异步操作。 public static CompletableFuture<Void> runAsync(Runnable runnable) public static Comp ...
分类:其他好文   时间:2021-06-02 17:33:34    阅读次数:0
go 字符串拼接
func main() { s1 := "Hello" + " " + "World" fmt.Println(s1) //Hello World ss := []string{"Hello", "World"} fmt.Println(strings.Join(ss, " ")) //Hello ...
分类:其他好文   时间:2021-06-02 17:07:23    阅读次数:0
go 类型转换
func main() { s := "Hello" b := []byte(s) fmt.Println(len(b), cap(b)) fmt.Println(b) } 5 8[72 101 108 108 111] //字符串转换为字节 []byte(s) []byte转换为 string 转 ...
分类:其他好文   时间:2021-06-02 17:04:01    阅读次数:0
Java使用ArrayList、HashMap实现三人斗地主
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
JAVA并发(3)-ReentrantReadWriteLock的探索
1. 介绍 本文我们继续探究使用AQS的子类ReentrantReadWriteLock(读写锁)。老规矩,先贴一下类图 ReentrantReadWriteLock这个类包含读锁和写锁,这两种锁都存在是否公平的概念,这个后面会细讲。 此类跟ReentrantLock类似,有以下几种性质: 可选的公 ...
分类:编程语言   时间:2021-06-02 16:39:51    阅读次数:0
07-Lists
单列集合的工具类 // Lists // 创建集合 List<String> list1 = Lists.newArrayList(); List<String> list2 = Lists.newArrayListWithCapacity(8); List<String> list3 = List ...
分类:其他好文   时间:2021-06-02 16:29:39    阅读次数:0
ArrayList两个对象之间的赋值
ArrayList list = new ArrayList(); // 第一次扩容 for (int i = 0; i < 10; i++) { list.add(i); } ArrayList list1 = list; for (int i = 0; i < 5; i++) { list1.a ...
分类:其他好文   时间:2021-06-02 16:00:48    阅读次数:0
关于String处理的一些api
// 字符处理的相关api // String.slice(start?: number, end?: number): string // String.substr(from: number, length?: number): string // String.substring(start: ...
分类:Windows程序   时间:2021-06-02 15:53:54    阅读次数:0
Java中"="的用法
Java中"="等号作用是赋值,优先级很低,就是把等号右边的值赋值给左边。但你先看下面的一块代码。 基本类型使用等号 String a = "123"; String b; System.out.println((b = a) == null);//打印1 System.out.println(b) ...
分类:编程语言   时间:2021-06-02 15:42:35    阅读次数:0
118627条   上一页 1 ... 37 38 39 40 41 ... 11863 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!