2018年7月3日

文件操作

摘要: package sortchar;import java.io.*;import java.util.Arrays; public class sortchar{ public static void main(String[] args) { try { FileInputStream fin=n 阅读全文

posted @ 2018-07-03 22:12 兮夜1234 阅读(74) 评论(0) 推荐(0) 编辑

2018年6月5日

用户图形设计界面之信息登记

摘要: import java.awt.*;public class loginframe extends Frame {public loginframe(){ super("user login"); this.setSize(1000, 1000); this.setLocation(300, 240 阅读全文

posted @ 2018-06-05 21:13 兮夜1234 阅读(223) 评论(0) 推荐(0) 编辑

2018年5月1日

类的封装,继承与多态。

摘要: 后期会改, 阅读全文

posted @ 2018-05-01 20:44 兮夜1234 阅读(114) 评论(0) 推荐(0) 编辑

2018年4月24日

类的封装与继承

摘要: package yuanzhu;import java.util.Scanner; public class yuanzhu { //圆类Circle private double radius; public double getRadius() { return radius; } public 阅读全文

posted @ 2018-04-24 21:41 兮夜1234 阅读(134) 评论(0) 推荐(0) 编辑

2018年4月10日

最大公约数与最小公倍数

摘要: import java.util.Scanner; public class demo03 { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a = in.nextInt(); // 阅读全文

posted @ 2018-04-10 21:20 兮夜1234 阅读(178) 评论(0) 推荐(0) 编辑

2018年4月3日

杨辉三角

摘要: class Yanghui { public static void main(string[] args) { int[][] yanghui=new int [10][]; for(int i=0;i<yanghui.length;i++) { yanghui[i]=new int[i+1]; 阅读全文

posted @ 2018-04-03 21:38 兮夜1234 阅读(161) 评论(1) 推荐(0) 编辑

2018年3月29日

用java语句求N的阶乘

摘要: 1.求10的阶乘。public class Test { public static void main(String[] args) {int n = 10; int result = 1; for (int i = 1; i <= n; i++) { result *= i; } System. 阅读全文

posted @ 2018-03-29 20:23 兮夜1234 阅读(1255) 评论(0) 推荐(0) 编辑

导航