IDEA生成的hashCode是这样的诶
@Override
public int hashCode() {
return Objects.hash(name);
}
@Override
public int hashCode() {
return Objects.hash(name);
}
2018-02-21
if ( prefix.equals(".java") ) {
System.out.println("Java文件名正确");
} else {
System.out.println("Java文件名无效");
}
System.out.println("Java文件名正确");
} else {
System.out.println("Java文件名无效");
}
2018-02-17
有兴趣 可以查看我的 看云网址 https://www.kancloud.cn/book/idcpj/python/edit#history_77
2018-02-14
分享一个java学习平台:
http://how2j.cn/k/collection/collection-collections/369.html?p=31480
http://how2j.cn/k/collection/collection-collections/369.html?p=31480
2018-02-14
https://www.imooc.com/article/23438 简单版的
谁说下用一个循环怎么完成这个随机
谁说下用一个循环怎么完成这个随机
2018-02-13
//int x = (int)Math.random()*100;
int x = (int)Math.floor(Math.random()*10);
自行比较两个代码的区别吧,可以查查 ,我也是看了评论补一条上来
int x = (int)Math.floor(Math.random()*10);
自行比较两个代码的区别吧,可以查查 ,我也是看了评论补一条上来
2018-02-13
.initCause() 方法是为了避免多次抛出异常后,不知道初始异常原因的一个方法。
对应的有 .getCause() 方法
对应的有 .getCause() 方法
2018-02-12
Double a = Double.valueOf(str);
理解为Double a = new Double(Double.valueOf(str));
不知对不对,拙见。
理解为Double a = new Double(Double.valueOf(str));
不知对不对,拙见。
2018-02-11
个人代码希望可以帮到大家
http://blog.csdn.net/qq_29132907/article/details/79312628
http://blog.csdn.net/qq_29132907/article/details/79312628
System.out.println("s3和s4内容相同吗?"+(s4.equals(s3)));
2018-02-11