自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Java基础学习之跳转控制语句

public class Demo3 { public static void main(String[] args) { // TODO Auto-generated method stub for(int i=0;i<5;i++) { if(i%2==0) { System.out.println(i); break; //conti...

2022-02-26 20:17:42 117

原创 java百钱百鸡

public static void main(String[] args) { // TODO Auto-generated method stub for(int x=0;x<=20;x++) { for(int y=0;y<=33;y++) { int z=100-x-y; if(z%3==0&&x*5+y*3+z/3==100) { ...

2022-02-26 20:17:11 170

原创 不死神兔题

import java.util.Scanner; public class Test8{ public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("请输入月"); Scanner sc = new Scanner(System.in); int x1 = sc.nextInt(); ...

2022-02-26 20:15:17 196

原创 JAVA判断素数法+引用方法

import java.util.Scanner; public class judge { public static void main(String[]args) { Scanner sc=new Scanner(System.in); System.out.println("请输入一个数"); int a=sc.nextInt(); ju(a); } public ...

2022-02-26 20:14:27 219

原创 JAVA判断水仙花数

import java.util.Scanner; public class Cc2{ @SuppressWarnings("resource") public static void main(String[] args) { // TODO Auto-generated method stub System.out.println("请输入一个数!"); int num1;// 百位 int num2;// 十位 ...

2022-02-26 19:43:11 305

原创 斐波那契数列前20项的值

public static void main(String[] args) { // TODO Auto-generated method stub int num[] = new int[20]; System.out.println("斐波那契数列前20项的值如下:"); for(int i = 0; i < 20; i++){ if(i==0) { ...

2022-02-26 19:42:00 1076

原创 java基础学习之数组(二)

获取数组长度 和 遍历数组 length获取长度,for循环遍历数组。 public static void main(String[] args) { String[] str = new String[5]; str[0] = "12"; str[1] = "13"; str[2] = "14"; str[3] = "15; str[4] = "16"; // 获取第二个字符 ...

2022-02-26 19:02:24 149

原创 Java基础学习之跳转控制语句

package e; import java.util.Scanner; public class demo8 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc=new Scanner(System.in); System.out.println("请输入一串字符串!"); String str=s...

2022-02-25 18:49:11 89

空空如也

空空如也

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

TA关注的人

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