http://www.imooc.com/opus/resource?opus_id=3458&tree=%2F
自己瞎写的,虽然写的烂,但也耗了不少力气。新手一枚,望人家多多指点!!
自己瞎写的,虽然写的烂,但也耗了不少力气。新手一枚,望人家多多指点!!
2017-05-02
最新回答 / earlsun
return result;这局删了就没错了
一路走过来 好久没听到纯粹讲知识点的一章了 真的好幸福! 因为特么比前面写绕来绕去的代码容易多了!!! 内流满面啊~~~~
2017-05-01
//将基本类型转换为字符串
double m = 78.5;
String str1 = Double.toString(m);
String str2 = String.valueOf(m);
String str3 = m + “”;
//将字符串转为基本类型
String str = "180.20";
Double a = Double.parseDouble(str);
Double b = Double.valueOf(str);
double m = 78.5;
String str1 = Double.toString(m);
String str2 = String.valueOf(m);
String str3 = m + “”;
//将字符串转为基本类型
String str = "180.20";
Double a = Double.parseDouble(str);
Double b = Double.valueOf(str);
2017-05-01
double a = 91.5;//定义double类型变量
Double b = new Double(a); //手动装箱
Double c = a;//自动装箱
Double d = new Double(87.0);//定义一个Double包装类对象
double e = d.doubleValue();//手动拆箱
double f = d;//自动拆箱
Double b = new Double(a); //手动装箱
Double c = a;//自动装箱
Double d = new Double(87.0);//定义一个Double包装类对象
double e = d.doubleValue();//手动拆箱
double f = d;//自动拆箱
2017-05-01
HelloWorld.java
public class HolloWorld{
public static void main(String [] args){
int score1 = 86;
Integer score2=new Integer(score1);
double score3=score2.doubleValue();
float score4=score2.floatValue();
int score5=score2.intValue();
System.out.println("Integer包装类:"+score2);
System.out...
.
.
}
}
public class HolloWorld{
public static void main(String [] args){
int score1 = 86;
Integer score2=new Integer(score1);
double score3=score2.doubleValue();
float score4=score2.floatValue();
int score5=score2.intValue();
System.out.println("Integer包装类:"+score2);
System.out...
.
.
}
}
2017-05-01
点赞最高的那位大神 写的非常好(指代码)! 没有一点错误 且干净利落 但是写法上可能不太容易理解 http://www.imooc.com/article/17765
这是我对他的改良版 哈哈 不算抄袭哦 嘻嘻 只是更加好理解而已(对于初学者来说的)
这是我对他的改良版 哈哈 不算抄袭哦 嘻嘻 只是更加好理解而已(对于初学者来说的)
2017-05-01
怎么感觉有点脱裤子放屁啊,contains已经有FALSE返回值,还用if else 干嘛??
2017-05-01