2015年5月23日
摘要: 1 在终端下运行程序,首先清屏,然后提示:“Input a file or directory name, please!”。从键盘输入一个字符串(如:xxx),如果该字符串是目录,则显示:“xxx is a directory.”;如果该字符串是文件(如:xxx),则显示:“xxx is a re... 阅读全文
posted @ 2015-05-23 21:56 瀚海 阅读(1021) 评论(0) 推荐(0) 编辑
2015年5月6日
摘要: 1:student、course类package JDBCU;public class Student { private String no; private String name; public String getNo() { return no; ... 阅读全文
posted @ 2015-05-06 21:22 瀚海 阅读(935) 评论(0) 推荐(0) 编辑
2015年5月3日
摘要: import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.Statement;import java.util.Scanner;public class Stu... 阅读全文
posted @ 2015-05-03 21:06 瀚海 阅读(905) 评论(0) 推荐(0) 编辑
摘要: abstract class Animal{ int legs; public Animal(int legs){ this.legs=legs; } public Animal(){} public abstract void eat(... 阅读全文
posted @ 2015-05-03 19:21 瀚海 阅读(142) 评论(0) 推荐(0) 编辑
2015年5月1日
摘要: import java.awt.EventQueue;import java.awt.event.*;import java.io.*;import javax.swing.*;public class ImageViewer { public static void main(Stri... 阅读全文
posted @ 2015-05-01 21:40 瀚海 阅读(215) 评论(0) 推荐(0) 编辑
2015年4月26日
摘要: 包括5种形式,如测试结果import java.util.Scanner;import java.util.regex.*;public class Com { public static void main(String[] args) { Scanner sc = new S... 阅读全文
posted @ 2015-04-26 22:22 瀚海 阅读(11073) 评论(0) 推荐(0) 编辑
2015年4月23日
摘要: public class Josephu { public static void main(String[] args) { Cyclink cyclink=new Cyclink(); cyclink.setLen(5); cyclink.... 阅读全文
posted @ 2015-04-23 20:07 瀚海 阅读(224) 评论(0) 推荐(0) 编辑
2015年4月21日
摘要: import java.io.*;import java.util.ArrayList;public class Emexe { public static void main(String[] args) throws IOException { Emp... 阅读全文
posted @ 2015-04-21 19:53 瀚海 阅读(542) 评论(0) 推荐(1) 编辑
2015年4月18日
摘要: 题目:小明搜到一行无缩进无换行代码,请帮小明整理代码。无for语句和case语句,而且只有一个主函数。你只要控制注意“;”“{”“}”这三个符号带来的缩进和换行效果就行。Input:输入只有一行,无缩进无换行字符,字符不超过10000009个。文件尾结束。Output:规范的缩进和换行,增加和减少缩... 阅读全文
posted @ 2015-04-18 16:59 瀚海 阅读(262) 评论(0) 推荐(0) 编辑