自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 计算1-100的和

class Count02{ //计算1-100的和 public int getSum(){ int sum=0;//用于收集1-100的值 for (int i=1;i

2022-09-25 22:51:36 78 1

原创 求一个数组的和

public class ChangeArgs { public static void main(String[] args) { int[]arr={1,3,5,7,9}; Count03 c=new Count03(); int sum1=c.getSum1(arr); System.out.println("数组的和:"+sum1); int sum2=c.getSum2(arr); System

2022-09-25 22:47:16 105

原创 求一个数组的最大值

public class ChangArgs_Exer01 { public static void main(String[] args) { Count04 c=new Count04(); int maxNum=c.max(5,3,7,15); System.out.println("最大值:"+maxNum); } } class Count04{ public int max(int num,int...other){

2022-09-25 22:46:24 105

原创 求员工的总收入

public class Method_Exer07 { class AvgWag{ String[][] employeeS = { {"10", "1", "段誉", "22", "3000"}, {"13", "2", "令狐冲", "32", "18000", "15000", "2000"}, {"11", "3", "任我行", "23", "7000"},

2022-09-25 22:44:20 67

原创 求员工的总收入

public class Method_Exer07 { class AvgWag{ String[][] employeeS = { {"10", "1", "段誉", "22", "3000"}, {"13", "2", "令狐冲", "32", "18000", "15000", "2000"}, {"11", "3", "任我行", "23", "7000"},

2022-09-25 22:43:31 50

原创 用银行卡实现存钱取钱转账的方法

import java.util.Scanner; class Account { String id; double balance; double balance2; public void sava(double money) { //存钱 if (money > 0) { balance += money; balance2+=money; } else {

2022-09-23 08:53:59 115

原创 判断两个值是否相等的方法

class Count{ public boolean compare ( int a, int b){ //判断两个整数是否相等 相等则返回true 否则返回false if (a == b) { return true; } else { return false; } } } class Method_Exer01 { public s

2022-09-23 08:42:10 540

原创 用银行卡实现存钱取钱转账的方法

import java.util.Scanner; class Account { String id; double balance; double balance2; public void sava(double money) { //存钱 if (money > 0) { balance += money; balance2+=money; } else {

2022-09-23 08:29:51 88

原创 1-100求和方式

#include int main(){ int sum = 0; //用于存放每次变量的值 int i = 1; //循环变量 START: sum = sum + i; i++; if(i

2022-09-22 08:41:05 63

原创 九九乘法表

for (int i = 1; i < 10; i++) { for (int j = 1; j

2022-09-22 08:38:57 138

空空如也

空空如也

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

TA关注的人

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