摘要:
学习内容:随机数 1.GetEvenNum()方法 实例代码: package 数字处理类; public class MathRondom {public static int GetEvenNum(double num1,double num2) { //产生num1~num2之间的随机数 in 阅读全文
摘要:
学习内容:数学运算 1.三角函数运算 代码实现: public class 三角函数运算 { public static void main(String[] args) { // TODO 自动生成的方法存根double a1=Math.sin(Math.PI/2);//求正弦值double a2 阅读全文
摘要:
学习内容:数字格式化 程序代码: package 数字处理类; import java.text.DecimalFormat; public class 数字格式化 {static public void SimgleFormat(String pattern,double value) { Dec 阅读全文
摘要:
学习内容:包装类 1.Integer型包装类 代码实现: public class Integer包装类 { public static void main(String[] args) { // TODO 自动生成的方法存根Integer a1=new Integer(15);//创建方法一Int 阅读全文