自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 JAVA——JDK 的安装 系统环境变量设置

首先需要去官网下载JDK; https://www.oracle.com/index.html 首页: java页面:点击下载进入页面 进入下载页面:往下滑选择java1.8下载 进入1.8下载页面:选择对应的系统型号; 点击下载:点击同意协议,才能下载jdk; 跳转到登陆账户页面: 1:可以注册一个账号,注册成功后自动下载JDK1.8; 2:使用网络上的共享账号 请勿改密码 方便大家使用; 账号:908344069@qq.c...

2021-07-01 21:19:40 137

原创 二分查找法

import java.util.Arrays; import java.util.Random; public class bulubulu { public static void main(String[] args) { int[] ints = new int[50]; for (int i = 0; i < ints.length ; i++) { ints[i]=new Random().nextInt(100); .

2021-06-30 21:39:52 38

原创 冒泡排序,(优化)

import java.util.Arrays; import java.util.Random; public class bulubulu { public static void main(String[] args) { int[] ints = new int[18]; for (int i = 0; i < ints.length ; i++) { ints[i]=new Random().nextInt(100); .

2021-06-30 21:03:16 51

原创 常用API总结(更新中)

大整数:BigInteger 大浮点数:BigDecimal BigInteger a=new BigInteger() add() 加 subtract()减 multiply()乘 divide()除 divide(BigDecimal divisor,int scale,int roundingMode) 除法 三个参数分别表示: 除数、精确小数位、舍入模式 常用舍入模式: BigDecimal....

2021-06-28 22:06:50 92

原创 String 类 用法大全(学习中)

package LHB.day2; public class TestString { public static void main(String[] args) { //String 类用法 // new String() 为类的构造方法 String str = new String("123");//创建String对象并赋值 // 123为常量,也可放入byte[]数组,默认字符编码编译数组内内容 //返回.

2021-06-25 23:12:12 77

原创 Math 幂运算 最大值 最小值 随机数

public class TextMath { public static void main(String[] args) { int a = 3; int b = 1; System.out.println(Math.pow(a, b)); // 结果3 幂运算 3的1次幂 System.out.println(Math.max(a, b)); // 结果3 输出两个数的最大值 System.out.println(Math.min(a, b)); // 结.

2021-06-24 21:43:07 121

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除