自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 6-2 简单选择排序

本题要求实现简单选择排序函数,待排序列的长度1

2022-06-15 00:33:14 149 1

原创 6-1 冒泡排序

编程实现冒泡排序函数。void bubbleSort(int arr[], int n);。其中arr存放待排序的数据,n为数组长度(1≤n≤1000)。

2022-06-15 00:31:55 353

原创 7-4 教师类 (10 分)

import java.util.Scanner;class Teacher{ int no; String name; String seminary; int age; public Teacher(){} public Teacher(int no, String name,int age, String seminary) { this.no = no; this.name = name; this.

2021-12-30 15:18:49 420

原创 7-3 接口--四则计算器 (10 分)

import java.util.Scanner;public class Main{ public static void main(String[] args) { Scanner in=new Scanner(System.in); int n=in.nextInt(); int m=in.nextInt(); Add l=new Add(); Sub j=new Sub(); System.out.println(l.computer(n, m)); Syste.

2021-12-30 15:17:54 466

原创 7-2 sdut-oop-6 计算各种图形的周长(多态) (10 分)

import java.util.*; public class Main{ public static void main(String[] args) { Scanner cin = new Scanner(System.in); double a,b,c; Shape x; String str; String []s; while(cin.hasNextLine())//cin.nextLine()吸收空格和tab,遇到回车停止。 { str = c...

2021-12-30 15:17:22 1707

原创 7-1 数组重排 (10 分)

import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a=in.nextInt(); int [] b=new int [a]; for(int i=0;i<b.length;i++){ b[i]=in.n.

2021-12-30 15:06:01 367

原创 public class Main {

this();this(0);

2021-12-30 15:05:17 815 1

原创 fun......

t.lengthsum=0t[i][i]1

2021-12-30 15:04:27 190

原创 6-1 jmu-Java-06异常-多种类型异常的捕获 (5 分)

catch(NumberFormatException e){ System.out.println("number format exception"); System.out.println(e);}catch(IllegalArgumentException e){ System.out.println("illegal argument exception"); System.out.println(e);}catch(Exception e){ Sys.

2021-12-30 15:02:36 481

原创 6-5 匿名内部类 (4 分)

new IODevice(){public void out(){System.out.println("this is print out");}public void getData(String msg){System.out.println("the print getData:"+msg);}}

2021-12-30 15:01:12 77

原创 【无标题】

6-4 equals方法 (3 分)public boolean equals(Object obj) {if (obj.getClass().equals(this.getClass())) {Point that = (Point) obj;if (this.xPos == that.xPos && this.yPos ==that.yPos)return true;}return false;}

2021-12-30 15:00:06 387

原创 6-3 static属性成员 (3 分)

class Student{static int dubianyifei=0;public Student( ){dubianyifei++;System.out.println("当前的Student总人数是:"+dubianyifei);}}

2021-12-30 14:58:52 180

空空如也

空空如也

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

TA关注的人

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