- 博客(16)
- 收藏
- 关注
原创 降序升序排序
public class java1 { public static void main(String[] args){ int t; int[]arr = {35,45,63,35,23,12,23,34}; System.out.print("原始数据"); for (int x :arr){ System.out.print(x +"\t"); } System.ou
2022-06-06 22:14:07 104
原创 登录小系统
import java.util.Scanner;public class JAVA3 { public static void main(String[]args){ double[]scores =new double[10]; double sum,average,max,min; Scanner sc = new Scanner(正在上传…重新上传取消System.in); for(int i = 0;i< sco
2022-06-06 22:12:31 110
原创 猜一个数字
import java.util.Random;public class jana1 { public static void main(String[]args){ int target, x; Scanner sc = new Scanner(正在上传…重新上传取消System.in); Random random =new Random(); target = random.nextInt( bound );
2022-06-06 22:09:21 179
原创 判断一个三位数是否为水花仙数
import java.util.Scanner;public class java1 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); System.out.print("请输入一个100~999之间的整数:"); int n=sc.nextInt(); if(n>=100) { int a=n%.
2022-05-12 09:50:33 294
原创 随机一个数,判断是否为奇数
package demo;import java.util.Random;public class java1 { public static void main(String[] args) { int num; Random random = new Random(); num = random.nextInt(100); System.out.println("随机产生的数为:" + num); .
2022-05-12 09:43:23 364
原创 超市计算价格
public class java1 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("请输入单价(¥):"); double price = scanner.nextDouble(); System.out.println("请输入数量:"); do.
2022-05-12 09:39:50 158
原创 判断是否为闰年
import java.util.Scanner;public class java4 { public static void main(String[] args) { System.out.print("请输入年份"); int year; Scanner scanner=new Scanner(System.in); year=scanner.nextInt(); if(year<0||year>.
2022-05-05 10:19:58 273
原创 九九乘法表
public class java1 { public static void main(String[] args) { System.out.println(); for(int j=1;j<10;j++){ for(int k=1;k<10;k++){ if(k>j)break; System.out.print(""+k+"X"+j+"="+j*k);.
2022-05-05 09:46:24 284
原创 用于网络接口
public interface java2 { public void connectNetwork(); default void speak(){ System.out.println("网卡用于连接网络"); } static void tell(){ System.out.println("我是一张网卡"); }}
2022-05-05 08:43:18 281
原创 计算三角形面积
import java.util.Scanner;public class java1 { public static void main(String[] args) { double a,b,c,s; Scanner sc =new Scanner(System.in); System.out.print("a="); a=sc.nextDouble(); System.out.print("b="); .
2022-04-28 09:10:40 414
原创 特殊计算法
import jdk.swing.interop.SwingInterOpUtils;import java.util.Arrays;import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()){ int le.
2022-04-28 08:06:18 684
原创 【无标题】
public class java2 { public static void main(String[] args) { int[][] a = new int[15][]; for (int i = 0; i < a.length; i++) { a[i] = new int[i + 1]; } for (int i = 0; i < a.length; i++) { .
2022-04-21 09:51:17 489
原创 降序排列数
public class java1 { public static void main(String[] args){ int t; int[]arr = {35,45,63,35,23,12,23,34}; System.out.print("原始数据"); for (int x :arr){ System.out.print(x +"\t"); } System.o.
2022-04-21 08:39:58 343
原创 计算最大最小值
import java.util.Scanner;public class JAVA3 { public static void main(String[]args){ double[]scores =new double[10]; double sum,average,max,min; Scanner sc = new Scanner(System.in); for(int i = 0;i< scores.len.
2022-04-14 10:43:31 388
原创 登录小系统
import java.util.Random;public class jana1 { public static void main(String[]args){ int target, x; Scanner sc = new Scanner(System.in); Random random =new Random(); target = random.nextInt( bound ); while.
2022-04-14 09:31:50 519
原创 猜数小游戏
import java.util.Random;public class jana1 { public static void main(String[]args){ int target, x; Scanner sc = new Scanner(System.in); Random random =new Random(); target = random.nextInt( bound ); while.
2022-04-14 09:01:00 3090
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人