1、选择表达式中的类型转换public class Test { public void static
main(String args[]){ int i = 5; System.out.println("Vlaue Is " + ((...
分类:
编程语言 时间:
2014-05-12 09:39:52
阅读次数:
294
方法名称:hover(over, out)
概述:当鼠标移动到一个匹配的元素上面时,会触发指定的第一个函数。当鼠标移出这个元素时,会触发指定的第二个函数。 参数: 1)overFunction
鼠标移到元素上要触发的函数 2)outFunction 鼠标移出元...
分类:
Web程序 时间:
2014-05-10 22:57:07
阅读次数:
530
1 class SuperClass{ 2 3 public SuperClass() { 4
System.out.println("superclass "); 5 show(); 6 } 7 public void show() { 8
System.out...
分类:
编程语言 时间:
2014-05-10 05:47:03
阅读次数:
299
方法一:public class QuickSortExp1{ public static
void main(String[] args){ int[] sortArray = new int[]{5,7,4,2,9,8,3,6};
System.out.println("before sor.....
分类:
编程语言 时间:
2014-05-10 05:08:46
阅读次数:
496
public class TestSelectSort{ public static void
main(String[] args){ int[] sortArray = new int[]{5,7,4,2,9,8,3,6};
System.out.println("before sortin.....
分类:
编程语言 时间:
2014-05-10 05:04:52
阅读次数:
322
public class InsertSort{ public static void
main(String[] args){ int[] sortArray = new int[]{5,7,4,2,9,8,3,6};
System.out.println("before sorting ,t.....
分类:
编程语言 时间:
2014-05-10 03:13:15
阅读次数:
342
这篇文章总结了关于Java构造的常见??问题。
1)为什么创建一个子类对象要也需要调用父类的构造函数?
class Super {
String s;
public Super(){
System.out.println("Super");
}
}
public class Sub extends Super {
public Sub(){...
分类:
编程语言 时间:
2014-05-09 22:44:26
阅读次数:
443
Description
定义一个复数类Complex,重载运算符“+”,“-”,“*”,“/”,使之能用于复数的加、减、乘、除。运算符重载函数作为Complex类的成员函数。编写程序,分别求两个复数之和、差、积和商。
Input
两个复数
Output
两个复数之和、差、积和商
Sample Input
3 4
5 -10
Sample Out...
分类:
编程语言 时间:
2014-05-09 21:52:08
阅读次数:
296
当hive在执行大数据量的统计查询语句时,经常会出现下面OOM错误,具体错误提示如下:
Possible error: Out of memory due to hash maps used in map-side aggregation.
Solution: Currently hive.map.aggr.hash.percentmemory is set to 0.5. Try set...
分类:
其他好文 时间:
2014-05-09 21:08:27
阅读次数:
366
在 mkfs.ext4 /dev/sda2 格式化硬盘空间时,可能出现这样的错误。
had this situation at office where I was told to re-partition an already existing partition. The situation was to get the below schema
/dev/sdb1 1 3040 24...
分类:
其他好文 时间:
2014-05-09 20:49:25
阅读次数:
343