摘要: 1.Thread类 继承Thread类,重写run()方法 public class ThreadDemo { public static void main(String[] args) { MyThread thread = new MyThread(); thread.start(); } } 阅读全文
posted @ 2020-07-09 22:31 马晟 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 给定两个字符串 s 和 t ,编写一个函数来判断 t 是否是 s 的字母异位词。 示例 1: 输入: s = "anagram", t = "nagaram" 输出: true 示例 2: 输入: s = "rat", t = "car" 输出: false 说明: 你可以假设字符串只包 阅读全文
posted @ 2020-07-09 21:47 马晟 阅读(127) 评论(0) 推荐(0) 编辑