mwbr.net
当前位置:首页 >> jAvA编程,一道作业题 >>

jAvA编程,一道作业题

package my.test.main;import java.util.Scanner;public class Exam {/** * @param args */public static void main(String[] args) {// TODO Auto-generated method stubScanner in = new Scanner(System.in);int score = 0;// 十次循环,出题f...

1.接口 public interface IShape { public double area( ); } 2.实现类 public class square implements IShape { private int length; public square(int length) { this.length = length; } public double area() { // TODO Auto-generated me...

public static String[][] readTxtFile(String filePath){String[][] all = new String[1000][10]; try { String encoding="GBK"; File file=new File(filePath); if(file.isFile() && file.exists()){ //判断文件是否存在 InputStreamReader re...

public class MyDate {private int year ;private int month ;private int day ;public MyDate(){}public MyDate(int year, int month, int day) {super();this.year = year;this.month = month;this.day = day;}public String toString() {retu...

程序及测试结果如下:自己看结果总结一下。可以自己运行,最后设置为1000.更为明显(设置为1000,运行结果太长贴不上) public class MyThread extends Thread { private int i; public void setI(int i){ this.i=i; } public void run(){ for(i...

What's ur email, i will send the full version to you. package testProject;import java.math.BigDecimal;public class BankAccount {protected String idNumber;protected String name;protected BigDecimal balance;//default constructorp...

package jisuanqi; import java.awt.BorderLayout; import java.awt.Dimension; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JButton; import javax.swing.BorderFactory; import java.awt.Rectangle; import ja...

ok

完全正确 ok了 package exp; public class ff{ int x; int y; public ff(){} public ff(int a, int b){ this.x=a; this.y=b; } public int jiafa(){ return x+y; } public int jianfa(int x,int y){ return x-y; } public static void main(Stri...

D,B,A,C,B A,B,D,D,A

网站首页 | 网站地图
All rights reserved Powered by www.mwbr.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com