自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 ****年**月**日转换成 **月**日****年

public static void main(String[] args) { String str="05月25日2021年"; String str1=str.substring(6)+str.substring(0,6); System.out.println(str1); }

2021-05-30 23:38:24 118

原创 创建Collectio容器对象,存入10个整数,以及2个Date对象。并统计10个数的和

//创建Collectio容器对象,存入10个整数,以及2个Date对象。并统计10个数的和 public static void main(String[] args) { Collection collection = new ArrayList(); for (int i = 1; i <= 10; i++) { collection.add(i); } collection.add(new Dat.

2021-05-29 10:08:50 115

原创 创建Collection,可以存入任意的对象:3个字符串,2个Integer,2个Boolean

public static void main(String[] args) { Collection col = new ArrayList(); col.add("老王"); col.add("老王"); col.add("老王"); col.add(true); col.add(false); col.add(495); col.add(520); col..

2021-05-29 09:57:35 88

原创 创建一个List集合,存储3个String,遍历输出。用多种方式

public class H2 { //2.创建一个List集合,存储3个String,遍历输出。用多种方式。 public static void main(String[] args) { List<String> list = new ArrayList<>(); list.add("张三"); list.add("张四"); list.add("张五"); list.add("张.

2021-05-29 09:56:30 1256

原创 创建一个List集合,存储5个int类型的数据,找到里面最大的数值。

package cn.javaqyq.home01;import java.util.ArrayList;import java.util.List;public class H1 { //创建一个List集合,存储5个int类型的数据,找到里面最大的数值。 public static void main(String[] args) { List<Integer> list = new ArrayList<>(); lis.

2021-05-29 09:37:16 973

空空如也

空空如也

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

TA关注的人

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