Java基础总结1简单Java程序helloword。classtest//类名为test的类{publicstaticvoidmain(String[]args)//主函数程序的入口{System.out.println("HelloWorld!");//打印语句输出HelloWord语句,””英文双引号内修饰的是字符串}}在声明整型变量或定义类的名称时,可以由字母、数..
分类:
编程语言 时间:
2014-08-26 03:03:47
阅读次数:
300
链接:http://poj.org/problem?id=1094
题意&思路:直接拓扑排序。多解输出一串英文,有环输出一段英文,唯一解输出一段英文及排序结果。
细节:题目描述不是很清楚,如果不看discuss我肯定要WA出翔。
discuss里总结了两点关键的:
1. 输入一条边时如果此时拓扑有解就输出这个解,即使后面的边成有向环也不管了,所以每次输入的时候都得进行拓扑排序。...
分类:
其他好文 时间:
2014-08-25 22:58:15
阅读次数:
279
1 /** 2 * 可变参数的方法重载 3 */ 4 class A { 5 public void test(int a, int b) { 6 System.out.println(a+", "+b); 7 } 8 9 public voi...
分类:
编程语言 时间:
2014-08-25 20:47:04
阅读次数:
227
1、异常处理概述从一个读取两个整数并显示商的例子: public static void main(String args[]) { Scanner input = new Scanner(System.in); System.out.prin...
分类:
编程语言 时间:
2014-08-25 19:10:44
阅读次数:
253
1. Program -- > execute in background ---- >2. output device: MAIL ---- > PRINT OUT immediately3. setup the datetime schedule
分类:
其他好文 时间:
2014-08-25 16:20:04
阅读次数:
178
Little Hasan loves to play number games with his friends.One day they were playing a game where one of them will speak out a positive numberand the others have to tell the sum of its factors. The firs...
分类:
其他好文 时间:
2014-08-25 11:57:04
阅读次数:
235
别名用来帮助你定义自己的git命令。比如你可以定义git a来运行git add --all。要添加一个别名, 一种方法是打开~/.gitconfig文件并添加如下内容:[alias] co = checkout cm = commit p = push # Show verbose out...
分类:
其他好文 时间:
2014-08-25 11:46:34
阅读次数:
203
自个在写自动化测验工具有关thrift效劳自动化测验遇到的疑问首先给大家看一段代码Java代码保藏代码publicstaticvoidtest(Listlist){System.out.println(list.get(0));System.out.println(list.get(0)+123);System.out.println(list.get(0).getClass());}publicstaticvoidbugTes..
分类:
编程语言 时间:
2014-08-25 10:10:45
阅读次数:
385
自个在写自动化测验工具有关thrift效劳自动化测验遇到的疑问首先给大家看一段代码 Java代码 保藏代码public static void test(Listlist){ System.out.println(list.get(0)); System.out...
分类:
编程语言 时间:
2014-08-25 07:37:53
阅读次数:
246
AndroidAsync is a low level network protocol library. If you are looking for an easy to use, higher level, Android aware, http request library, check out?Ion?(it is built on top of AndroidAsync)....
分类:
移动开发 时间:
2014-08-24 20:57:53
阅读次数:
358