zoukankan      html  css  js  c++  java
  • 第一次作业--林枫

    1.3

    public class Lf{
        public static void main(String[] args){
            System.out.println(" J A V V A");
            System.out.println(" J A A V V A A");
            System.out.println("J J AAAAA V V AAAAA");
            System.out.println(" J J A A V A A");
        }
    }

    1.8

    public class Test{
        public static void main(String[] args){
            double c=2 * 5.5 * Math.PI;
            double s=5.5 * 5.5 * Math.PI;
            System.out.println("周长为"+c);
            System.out.println("面积为"+s);
        }
    }

    1.12

    public class St{
        public static void main(String[] args){
            double t=((40*60+35)/(60*60))+1;
            double s=24*1.6;
            double v=s/t;
            System.out.println("平均速度为"+v+"km/h");
        }
    }

  • 相关阅读:
    计算长度的方法
    自动装箱和拆箱
    基本数据包装类
    Date类
    文档参数解析
    权限修饰符
    IO流
    ArrayList集合类
    对象数组
    二维数组
  • 原文地址:https://www.cnblogs.com/linfenglf/p/7507132.html
Copyright © 2011-2022 走看看