摘要: package 文件读取;import java.io.*;import java.util.*;class File{ public static void main(String[] args) { BufferedReader br = null; BufferedWriter bw = nu 阅读全文
posted @ 2018-07-03 20:14 孔得秀 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1.事件监听: package 事件监听;import java.awt.*;import java.awt.event.*;public class Frame2 extends Frame implements ActionListener{ private Button button1; pu 阅读全文
posted @ 2018-06-26 22:46 孔得秀 阅读(113) 评论(0) 推荐(0) 编辑
摘要: package 个人信息显示界面; import java.awt.*; public class LoginFrame extends Frame { public LoginFrame () { super("个人信息"); this.setSize(250,250);//设计组件的尺寸 thi 阅读全文
posted @ 2018-06-04 22:11 孔得秀 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 学生成绩管理 public class Grade { private double english; private double math; private double chinese; public Grade(double english, double math, double chin 阅读全文
posted @ 2018-05-28 21:53 孔得秀 阅读(99) 评论(0) 推荐(0) 编辑
摘要: public class Bank { String account ; int account_num; public Bank(String account,int account_num){ this.account=account; this.account_num=account_num; 阅读全文
posted @ 2018-05-01 20:40 孔得秀 阅读(130) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner;public class Circle1 { private double radius;//用于存放圆的半径; public Circle1 ()// 将半径设为0 { radius = 0; } public Circle1(double r){ 阅读全文
posted @ 2018-04-23 20:54 孔得秀 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2018-04-10 21:58 孔得秀 阅读(139) 评论(1) 推荐(0) 编辑
摘要: import java.util.Scanner; public class 阶乘 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("输入一个数字") 阅读全文
posted @ 2018-03-31 15:36 孔得秀 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 杨辉三角 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++) 阅读全文
posted @ 2018-03-31 15:33 孔得秀 阅读(127) 评论(0) 推荐(0) 编辑