码迷,mamicode.com
首页 > 其他好文 > 详细

1636050123 邓艳丽

时间:2017-09-11 14:17:04      阅读:97      评论:0      收藏:0      [点我收藏+]

标签:double   etl   text   public   this   his   out   speed   []   

1.
public class Test{
public static void main(String[] args){
int i;
for(i=1;i<=5;i++){
System.out.println("Welcome to java"); 
}
}

 

 

2.

public class AverageSpeed{

 public static void main(String[]args){

double speedkm =60/(45.5/14);

double speedm = speedkm /1.6;

system.out.println(“averagespeed = ”+speedm + "m/h")

}

 

 

 

}

 

 

3.

public class Circle{
private double r;
public Circle(double r){
this.r =r;
}
public double getLength(){
return 2*Math.PI*r;
}
public double getArea(){
return Math.PI*r*r;
}
}

1636050123 邓艳丽

标签:double   etl   text   public   this   his   out   speed   []   

原文地址:http://www.cnblogs.com/luhan7/p/7504622.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!