本次内容:java常用类1、包装类 1 package array; 2 3 public class
wrapperclass { 4 public static void main(String[] args) 5 { 6 Integer i=new
Inte...
分类:
编程语言 时间:
2014-05-01 09:16:28
阅读次数:
384
网页的缓存由HTTP消息头中的"Cache-Control"
来控制的,常见的取值有private、no-cache、max-age、must-revalidate等,默认为private。其作用根据不同的重新浏览方式分为以下几种情况:(1)
打开新窗口如果指定cache-control的值为pri...
分类:
其他好文 时间:
2014-05-01 06:51:33
阅读次数:
273
所有注释放在代码中...(图片的加入使用硬代码)package
com.sxt.jtime;import java.awt.BorderLayout;public class Itimer_test extends
JFrame { private JPanel contentPane; ...
分类:
编程语言 时间:
2014-05-01 04:01:01
阅读次数:
546
package algorithm.sort;public class QuickSort {
public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4,
9, 8, 6, 1}; sort(a); ...
分类:
其他好文 时间:
2014-05-01 03:33:20
阅读次数:
330
package algorithm.sort;public class CountingSort {
public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4,
9, 8, 6, 1}; int[] ...
分类:
其他好文 时间:
2014-05-01 03:25:05
阅读次数:
252
package algorithm.sort;public class HeapSort {
public static void main(String[] args) { int[] a = new int[] {5, 3, 7, 2, 1, 4,
9, 8, 6, 1}; sort(a); p...
分类:
其他好文 时间:
2014-05-01 03:24:04
阅读次数:
332
----------------------
ASP.Net+Unity开发、.Net培训、期待与您交流! ----------------------
package cn.itcast.IO;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import j...
分类:
其他好文 时间:
2014-04-29 13:41:22
阅读次数:
407
泛型作用于编译阶段:
泛型是作用于编译阶段,在编译阶段控制类型,以确保在编写代码的时候只能传入指定类型数据到泛型集合对象中去。如何验证呢,贴代码如下:
package highBasic.generic;import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import ja...
分类:
编程语言 时间:
2014-04-29 13:34:22
阅读次数:
277
package com.ronniewang.downloadpicture;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.MalformedURLException;
import...
分类:
编程语言 时间:
2014-04-29 13:27:20
阅读次数:
345
----------------------
ASP.Net+Unity开发、.Net培训、期待与您交流! ----------------------
package cn.itcast.IO;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
imp...
分类:
其他好文 时间:
2014-04-29 13:12:22
阅读次数:
279