摘要:
package 文件读取;import java.io.*;import java.util.*;class File{ public static void main(String[] args) { BufferedReader br = null; BufferedWriter bw = nu 阅读全文
摘要:
1.事件监听: package 事件监听;import java.awt.*;import java.awt.event.*;public class Frame2 extends Frame implements ActionListener{ private Button button1; pu 阅读全文
摘要:
package 个人信息显示界面; import java.awt.*; public class LoginFrame extends Frame { public LoginFrame () { super("个人信息"); this.setSize(250,250);//设计组件的尺寸 thi 阅读全文
摘要:
学生成绩管理 public class Grade { private double english; private double math; private double chinese; public Grade(double english, double math, double chin 阅读全文
摘要:
public class Bank { String account ; int account_num; public Bank(String account,int account_num){ this.account=account; this.account_num=account_num; 阅读全文
摘要:
import java.util.Scanner;public class Circle1 { private double radius;//用于存放圆的半径; public Circle1 ()// 将半径设为0 { radius = 0; } public Circle1(double r){ 阅读全文
摘要:
import java.util.scanner; public class Test { public static int fun(int a ,int b){ int c; c = a % b; while(c > 0){ a = b; b = c; c = a % b; } return(b 阅读全文
摘要:
import java.util.Scanner; public class 阶乘 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("输入一个数字") 阅读全文
摘要:
杨辉三角 package 孔得秀; public class 杨辉三角 { public static void main(String args[]) { int i,j,x=6;//定义三角层数 int a[][] = new int[x][x];//定义数组 for( i=0;i<x;i++) 阅读全文