1 //用户从键盘输入两个实数,输出它们的和 2 package classwork8; 3 4 import java.util.Scanner; 5 6 public class Double_test { 7 8 public static void main(String[] args) { ...
分类:
编程语言 时间:
2020-12-15 12:39:23
阅读次数:
5
1 package classwork8; 2 3 import java.util.Date; 4 5 public class DateTest { 6 7 public static void main(String[] args) { 8 Date currentDate = new Dat ...
分类:
其他好文 时间:
2020-12-15 12:38:00
阅读次数:
4
goroutine是Golang特有,类似于线程,但是线程是由操作系统进行调度管理,而goroutine是由Golang运行时进行调度管理的用户态的线程。 1.C#的线程操作 1.1 创建线程 static void Main(string[] args) { Thread thread = new ...
分类:
其他好文 时间:
2020-12-15 12:15:03
阅读次数:
2
import java.io.*; public class FileReaderWriter { public static void main(String[] args) throws IOException { File file=new File("d://text.txt");//创建文 ...
分类:
其他好文 时间:
2020-12-15 12:01:31
阅读次数:
2
Spock虽然好用,但要应用到实际项目中还是需要注意几个问题,下面讲下我们公司在使用过程中遇到的一些问题和解决方案 版本依赖 要使用Spock首先需要引入相关依赖,目前使用下来和我们项目兼容的Spock版本是1.3-groovy-2.5,以maven为例(gradle可以参考官网),完整的pom依赖 ...
分类:
其他好文 时间:
2020-12-15 11:42:04
阅读次数:
1
接口的默认实现 实现类中可以不实现接口中有默认实现的方法,以下代码不报错 public interface IPerson { void Say() { Console.WriteLine("hello"); } } public class Teacher:IPerson { } 但是不可以通过实 ...
1 class Solution { 2 public String longestPalindrome(String s) { 3 if(s.equals("")) return ""; 4 String origin = s; 5 String reverse = new StringBuffe ...
分类:
其他好文 时间:
2020-12-14 13:43:53
阅读次数:
4
对于如下代码: String s1 = "a"; String s2 = s1 + "b"; String s3 = "a" + "b"; System.out.println(s2 == "ab"); System.out.println(s3 == "ab"); 第一条语句打印的结果为false ...
分类:
其他好文 时间:
2020-12-14 13:43:37
阅读次数:
4
JS 数据类型 JS数据类型:JS的基本类型和引用类型有哪些呢? 基本类型(单类型):除Object。 String、Number、boolean、null、undefined symbol、bigInt 引用类型:object。里面包含的 function、Array、Date。 ES6 中新增了 ...
分类:
编程语言 时间:
2020-12-14 13:41:21
阅读次数:
6
读取图片 @GetMapping("uploadHeader/{fileName}") public void getHeader(@PathVariable("fileName")String fileName,HttpServletResponse response){ //服务器存放路径 fi ...
分类:
其他好文 时间:
2020-12-14 13:31:13
阅读次数:
3