Java Math 类 Java 的 Math 包含了用于执行基本数学运算的属性和方法,如初等指数、对数、平方根和三角函数。 Math 的方法都被定义为 static 形式,通过 Math 类可以在主函数中直接调用。 Test.java 文件代码: public class Test { publi ...
分类:
编程语言 时间:
2021-05-03 12:12:51
阅读次数:
0
File类与IO流
File类的静态成员变量
绝对路径和相对路径
File类的构造方法
File类获取功能的方法
File类判断功能的方法
File类创建和删除功能的方法
File类的目录的遍历功能 ...
分类:
编程语言 时间:
2021-05-03 12:05:02
阅读次数:
0
public class oopDemo7 { public static void main(String[] args) { oopDemo71 oopDemo7 = new oopDemo71("罗hz"); System.out.println(oopDemo7.name); }} publ ...
分类:
其他好文 时间:
2021-05-03 11:56:18
阅读次数:
0
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo-backupwget -O /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/rep ...
分类:
其他好文 时间:
2021-05-03 11:53:06
阅读次数:
0
1、概念 使用static 修饰成员变量,此时该成员变量又对象层级提升到类层级,被所有对象共享 该成员变量随着类的加载而准备就绪,与是否创建对象无关. 总之:类存在的时间比对象早 2、修饰的范围 static 修饰符表示静态的,可修饰字段、方法、代码块、内部类,其修饰的成员属于类,也就是说 stat ...
分类:
其他好文 时间:
2021-05-03 11:49:22
阅读次数:
0
//在不使用任务插件的情况下读取DWG文件的缩略图,以便在没有安装AutoCAD的计算机上浏览。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using Syst ...
./premetheus -h 命令行常用参数: ?--config.file="prometheus.yml" # 指定配置文件 ?--web.listen-address="0.0.0.0:9090" # 监听地址和端口 ?--log.level=info # 日志级别 ?--alertmana ...
分类:
其他好文 时间:
2021-04-30 12:19:22
阅读次数:
0
```javapublic class oopDemo6Student { String name; int age; public void study(){ System.out.println(this.name+"在学习"); }}//person >名字、生日、身高、体重//类(抽象) > ...
分类:
其他好文 时间:
2021-04-30 12:16:19
阅读次数:
0
public class oopDemoStufent2 { //static是一个静态方法 public static void say1(){ System.out.println("学生说好"); }} public class oopDemoStudent { //没有static就是非静态 ...
分类:
其他好文 时间:
2021-04-30 12:15:30
阅读次数:
0
一、循环嵌套 1. 下列代码的运行结果是( ) public static void main(String[] args){ int count = 0; for(int j = 0;j<3;j++) { for(int i = 0;i<6;i++) { count++; } } System.o ...
分类:
编程语言 时间:
2021-04-30 12:15:08
阅读次数:
0