- 博客(8)
- 收藏
- 关注
原创 快快快4题试试
import java.util.Scanner; class Stock { String symbol; String name ; double previousClosingPrice; double currentPrice; public Stock(String symbol, String name) { this.symbol = symbol; this.name = name; } doub...
2022-05-18 20:28:30
678
原创 第三题的让你试试这个
import java.util.Scanner; public class t3 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double[][] m = new double[4][4]; int row = 4, col = 4; for (int i = 0; i < row; i++) { ...
2022-05-18 20:15:06
101
原创 【无标题】新的1111
public class Person { private String name; private String address; private String phone; private String email; public Person() { } public Person(String name, String address, String phone, String email) { this.name = name; ...
2022-05-18 20:14:28
61
原创 编程4444
编程4 public class Stock { String symbol; String name ; double previousClosingPrice; double currentPrice; public Stock(String symbol, String name) { this.symbol = symbol; this.name = name; } double getChangePerce...
2022-05-18 19:43:08
68
原创 编程3答案
编程3 public static double sumMajorDiagonal(double[][] m) { int row = m.length; int col = m[0].length; double sum = 0; for (int i = 0; i < row; i++) { for (int j = 0; j < col; j++) { if (i ==...
2022-05-18 19:35:57
96
原创 33333
编程1的Test1类改成这个: import java.util.Scanner; public class Test1 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); Child[] children = new Child[3]; String nameChild = sc.next(); String nameToy...
2022-05-18 19:25:41
100
原创 22222
public abstract class Toy { protected String name; public abstract void howToPlay(); protected Toy(String name) { this.name = name; } } class Football extends Toy { private int radius; public Football(String name, int ra...
2022-05-18 19:05:11
116
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人