上一页 1 ··· 170 171 172 173 174 175 176 177 178 ··· 491 下一页
摘要: import java.io.File fun main(args: Array<String>) { File("src/inputFile.txt").forEachLine { print(it) // it refers to each line's content } } 阅读全文
posted @ 2020-10-14 15:06 Zhentiw 阅读(176) 评论(0) 推荐(0)
摘要: var letters = str.toLowerCase().toCharArray().toHashSet() 阅读全文
posted @ 2020-10-14 15:04 Zhentiw 阅读(84) 评论(0) 推荐(0)
摘要: onErrorResumeNext Will subscribe to each observable source it is provided, in order. If the source it's subscribed to emits an error or completes, it 阅读全文
posted @ 2020-10-14 03:17 Zhentiw 阅读(158) 评论(0) 推荐(0)
摘要: import { fromEvent, timer } from 'rxjs'; import { throwIfEmpty, takeUntil } from 'rxjs/operators'; const click$ = fromEvent(document, 'click'); click$ 阅读全文
posted @ 2020-10-14 03:05 Zhentiw 阅读(122) 评论(0) 推荐(0)
摘要: import java.util.* fun main(args: Array<String>) { val number = Random().nextInt(100) + 1 var input: String? var guess = -1 while(guess!=number) { pri 阅读全文
posted @ 2020-10-14 02:54 Zhentiw 阅读(115) 评论(0) 推荐(0)
摘要: //vararg: just like ...args in js class Stack<T>(vararg val items: T) { val elements = items.toMutableList() fun push(element: T) { elements.add(eleme 阅读全文
posted @ 2020-10-14 02:46 Zhentiw 阅读(98) 评论(0) 推荐(0)
摘要: //vararg: just like ...args in js class Stack<T>(vararg val items: T) { val elements = items.toMutableList() fun push(element: T) { elements.add(eleme 阅读全文
posted @ 2020-10-14 02:40 Zhentiw 阅读(50) 评论(0) 推荐(0)
摘要: In this lesson, we create a face for a head using layered comma-separated background images. CSS allows us to layer as many background images as we wa 阅读全文
posted @ 2020-10-14 02:21 Zhentiw 阅读(82) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-10-14 01:54 Zhentiw 阅读(79) 评论(0) 推荐(0)
摘要: private protected internal: accessable for the project / module public https://kotlinlang.org/docs/reference/visibility-modifiers.html 阅读全文
posted @ 2020-10-13 02:33 Zhentiw 阅读(67) 评论(0) 推荐(0)
上一页 1 ··· 170 171 172 173 174 175 176 177 178 ··· 491 下一页