摘要: 实验六 package 银行账户; public class Account{ private String acnumber;//账号 private String name;//储户姓名 private String khtime;//开户时间 private String accId;//身份 阅读全文
posted @ 2019-06-30 20:26 zengtaicuomao 阅读(149) 评论(1) 推荐(0) 编辑
摘要: import java.awt.FlowLayout;import javax.swing.*;import java.awt.Container;public class jianli extends JFrame{public jianli(){JFrame jf1=new JFrame ("简 阅读全文
posted @ 2019-06-17 22:28 zengtaicuomao 阅读(100) 评论(1) 推荐(0) 编辑
摘要: package jisuanqi2;import java.awt.*;import javax.swing.*;import java.awt.event.*; public class Jisuanqi extends Frame implements ActionListener{public 阅读全文
posted @ 2019-06-09 19:12 zengtaicuomao 阅读(152) 评论(1) 推荐(0) 编辑
摘要: 用类JButton、JLabel、JTextField、JCheckBox、JRadioButton、JComboBox来创建GUI对象,他们也就是界面中的组件,分别是按钮,标签,文本框,复选框,单选框,组合框。 在用 JPanel创建面板对象,将组件都添加到面板中去,最后再创建一个框架,将面板添加 阅读全文
posted @ 2019-06-03 17:20 zengtaicuomao 阅读(108) 评论(1) 推荐(0) 编辑
摘要: 实验程序如下: public class 图形 { public static void main(String[] args) { point p1=new point(0,0); point p2=new point(1,0); point p3=new point(0,1); rectangl 阅读全文
posted @ 2019-05-29 10:27 zengtaicuomao 阅读(143) 评论(1) 推荐(0) 编辑
摘要: 一 public class Du {public static void main(String[] args) {}}class Rectangle{protected double length;protected double width;public Rectangle(double le 阅读全文
posted @ 2019-05-19 23:46 zengtaicuomao 阅读(162) 评论(1) 推荐(0) 编辑
摘要: package Students;public class Person { public String name; public String birthday; public String province,city; public int count; public Person(String 阅读全文
posted @ 2019-05-06 21:43 zengtaicuomao 阅读(174) 评论(1) 推荐(0) 编辑
摘要: import java.util.Scanner; public class Cal10Num { public static void main(String[] args) { int total=0; int temp=0; Scanner scan=new Scanner(System.in 阅读全文
posted @ 2019-04-07 21:58 zengtaicuomao 阅读(119) 评论(1) 推荐(0) 编辑
摘要: public class Ttt { public static void main(String[] args) { int[][] a=new int[10][10]; for(int i=0;i<10;i++) for(int j=0;j<10;j++) { if (j<i) { a[i][j 阅读全文
posted @ 2019-03-31 21:34 zengtaicuomao 阅读(103) 评论(1) 推荐(0) 编辑
摘要: //for循环public static void forFunc(int n) {int result = 1;StringBuffer str = new StringBuffer();for (int i = n; i > 0; i--) {if (i > 1) {str.append(i + 阅读全文
posted @ 2019-03-25 20:37 zengtaicuomao 阅读(99) 评论(1) 推荐(0) 编辑