进阶のJAVA5

时间:2014-04-08 22:22:16   收藏:0   阅读:476

1 .数据类型:基本数据类型、引用类型。
2 .基本数据类型 byte;short;int;long;flot;double;char ;boolean;(boolea本身没有大小,由java虚拟机确定)
3 .引用类型 class ;interface;数组等;
4 . 练习,已知华氏温度求摄氏温度。
public class TempConverter{
public static void main(String [] args){

double C=0;
String s1=args[0];
double sun=0;
double F= Double.parseDouble(args[0]);

sun= F-32;
C =sun*5/9;
System.out.println(C);
System.out.println(sun);
}

}

进阶のJAVA5,布布扣,bubuko.com

原文:http://www.cnblogs.com/xiaolonging/p/3651280.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!