摘要: package 文件管理;import java.io.*;public class Filechar { //对字符数组进行排序的类 private String str; private char arrayList[]; private BufferedReader br; //字符流 pri 阅读全文
posted @ 2018-07-03 20:25 汪迎伟 阅读(128) 评论(1) 推荐(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:47 汪迎伟 阅读(173) 评论(0) 推荐(0) 编辑
摘要: package 界面;import java.awt.*;public class jiem extends Frame { public jiem () { super("个人信息"); this.setSize(350,300);//设计组件的尺寸 this.setLocation(800,60 阅读全文
posted @ 2018-06-05 22:41 汪迎伟 阅读(84) 评论(0) 推荐(0) 编辑
摘要: package 学生成绩;import java.util.Scanner;public class 成绩{ public static void main(String[] args){ int math=0; int chinese=0; int en=0; int sum=0; System. 阅读全文
posted @ 2018-05-28 22:43 汪迎伟 阅读(108) 评论(0) 推荐(0) 编辑
摘要: //Programme Name TestCylinder.java class Circle { private double radius; Circle() { radius=0.0; } Circle(double r) { radius=r; } double getPerimeter() 阅读全文
posted @ 2018-04-24 20:43 汪迎伟 阅读(108) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; public class demo03 { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a = in.nextInt(); in 阅读全文
posted @ 2018-04-10 20:54 汪迎伟 阅读(212) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[]args) { int r=6; int a[][]=new int[r+1][]; for(int i=0;i<=r;i++) { a[i]=new int[i+1]; } YangHui(a,r); } static void Ya 阅读全文
posted @ 2018-04-02 19:47 汪迎伟 阅读(114) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; public class KnownTest { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("输 阅读全文
posted @ 2018-04-02 19:42 汪迎伟 阅读(167) 评论(0) 推荐(0) 编辑