自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 java ATM(游戏)

测试用例: //Enter a id: 100 Enter a correct id: 4 Main menu 1: check balance 2: withdraw 3: deposit 4: exit Enter a choice: 1 The balance is 100.0 Main menu 1: check balance 2: withdraw 3: deposit 4: exit Enter a choice: 2 Enter an amount to withdraw: 3 ..

2022-04-18 14:37:11 253

原创 MyInteger类

5 Is 5 even? false Is 5 odd? true Is 5 prime? true Is 13 even? false Is 13 odd? true Is 13 prime? true Is 3 even? false Is 3 odd? true Is 3 prime? true 128 255 测试用例: public class Main { public static void main(String[] args) { MyInteger my

2022-04-18 13:06:56 519

原创 java Location类

/* 输入: Enter te numbeer of rows and columns in the array: 3 4 Enter the array: 23.5 35 2 10 4.5 3 45 3.5 35 44 5.5 9.6 输出: The location of the largest element is 45.0 at (1 ,2 ) */ public class Location { int row; int column; d.

2022-04-17 12:20:06 770

原创 java 严格相同的两个数组

import java.util.Scanner; public class Main { public static void main(String[] args) { System.out.println("Enter list1"); int[][] str = getArray(); System.out.println("Enter list2"); int[][] str1 = getArray(); .

2022-04-15 22:07:40 265

原创 java 随机打乱数组行

public class Main { public static void main(String[] args) { int[][] m = {{1,2},{3,4},{5,6},{7,8},{9,10}}; shuffle(m); } public static void shuffle(int[][] m){ int n; int a = m[0].length; int b = m.length; .

2022-04-15 12:52:39 645

原创 java 定位最大的元素

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter the number of rows and column of the array:"); int m =input.nextInt(); .

2022-04-15 12:26:50 626

原创 java 最大的行和列

import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); int[][] str = new int[4][4]; for (int i = 0; i < str.length; i++) { String s = ""; .

2022-04-15 12:05:19 383

原创 java 两个矩阵之和

输入: 输出: public class Main { public static void main(String[] args) { System.out.println("Enter str:"); double[][] str = getArray(); System.out.println("Enter str2:"); double[][] str1 = getArray(); double[][] s.

2022-04-14 23:46:44 570

原创 java 求矩阵中各列数字之和

输入: 输出: import java.util.Scanner; public class Main { public static void main(String[] args) { double[][] str = getArray(); for (int columnIndex = 0; columnIndex < 4; columnIndex++) { System.out.println("Sun of the.

2022-04-14 22:31:53 1100

原创 java 合并两个有序数组

import java.util.*; public class Main { static Scanner input = new Scanner(System.in); public static void main(String[] args) { int[] str = getArray1(); int[] str1 = getArray2(); int[] str2 = merge(str,str1); System.out.pri...

2022-04-14 17:18:43 767

原创 java 对字符串中的字符排序

import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter a String:"); String s = input.nextLine(); ...

2022-04-14 17:17:15 607

空空如也

空空如也

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

TA关注的人

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