标签:new out tin val com ber int() font avg
1.2
public class welcome
{
public static void main(String[] args){
System.out.println("Welcome to java!");
System.out.println("Welcome to java!");
System.out.println("Welcome to java!");
System.out.println("Welcome to java!");
System.out.println("Welcome to java!");}
}
1.8
public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.print("半径为5.5"); int r = sc.nextInt(); sc.close(); double s = Math.PI * 5.5 * r; double c = Math.PI * 5.5 * 2; System.out.println("圆的面积:" + s + ",圆的周长:" + c); }}1.12
public double getAvg(double time,double len){
double hour = time/60;
double _len = len/1.6;
double avg = _len/hour;
return avg;
}
标签:new out tin val com ber int() font avg
原文地址:http://www.cnblogs.com/kally004/p/7504116.html