上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

2012年11月1日

装饰练习

摘要: public class zhuangshiDemo{ public static void main(String[] args) { new superperson(new person()).eat(); }}class person{ public void eat() { System.out.println("吃家常饭"); }}class superperson{ private person p; public superperson(person p) { this.p=... 阅读全文

posted @ 2012-11-01 22:41 蝌蚪的精神 阅读(110) 评论(0) 推荐(0) 编辑

JavaScript对象练习

摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=GBK"> <title>Untitled Document</title> </head> <bod 阅读全文

posted @ 2012-11-01 15:45 蝌蚪的精神 阅读(327) 评论(0) 推荐(0) 编辑

2012年10月29日

数组翻转 字符串翻转

摘要: package awt;class DemoString{ public static void main(String[] args) { int[] arr={2,34,2,2,343,32,33}; select(arr); print(arr); } public static void select(int[] arr) { int[] ar=new int[arr.length]; for(int start=0,end=arr.length-1;start<end;star... 阅读全文

posted @ 2012-10-29 22:04 蝌蚪的精神 阅读(187) 评论(0) 推荐(0) 编辑

2012年10月28日

去除两端空格

摘要: function trim(str){ var start,end; start=0; end=str.length-1; while(start<=end && str.charAt(start)==' '){ start++; } while(start<=end && str.charAt(end)==" "){ ... 阅读全文

posted @ 2012-10-28 22:26 蝌蚪的精神 阅读(119) 评论(0) 推荐(0) 编辑

2012年10月27日

提交表单标签

摘要: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title></head><body><h1>赵集村</h1><from action="Untitled.html" method="post">编&nbsp;&nbsp号:<input type="text" n 阅读全文

posted @ 2012-10-27 21:43 蝌蚪的精神 阅读(127) 评论(0) 推荐(0) 编辑

JavaScript练习

摘要: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=GBK"> <title>Untitled Document</title> </head> <bod 阅读全文

posted @ 2012-10-27 16:10 蝌蚪的精神 阅读(136) 评论(0) 推荐(0) 编辑

2012年10月23日

反射练习

摘要: package fanshe;import java.lang.reflect.Constructor;import java.lang.reflect.Field;import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;public class testDemo { public static void main(String[] args) throws Exception { method_9(); } private static void me... 阅读全文

posted @ 2012-10-23 15:22 蝌蚪的精神 阅读(153) 评论(0) 推荐(0) 编辑

正则表达式

摘要: package fanshe;import java.lang.reflect.Constructor;import java.lang.reflect.Field;import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;public class testDemo { public static void main(String[] args) throws Exception { method_9(); } private static void me... 阅读全文

posted @ 2012-10-23 15:16 蝌蚪的精神 阅读(158) 评论(0) 推荐(0) 编辑

2012年10月22日

管道流练习PipedInputStream

摘要: package FileDemo;import java.io.IOException;import java.io.PipedInputStream;import java.io.PipedOutputStream;public class PipedStreamDemo { public static void main(String[] args) throws IOException { PipedInputStream input=new PipedInputStream(); PipedOutputStream output=new PipedOu... 阅读全文

posted @ 2012-10-22 21:16 蝌蚪的精神 阅读(178) 评论(0) 推荐(0) 编辑

ObjectOutputStream ObjectInputStream 对象序列化

摘要: public static void main(String[] args) throws FileNotFoundException, IOException, ClassNotFoundException { writerObj(); readerObj(); } private static void readerObj() throws IOException, ClassNotFoundException { ObjectInputStream ois=new ObjectInputStream(new FileInput... 阅读全文

posted @ 2012-10-22 20:57 蝌蚪的精神 阅读(110) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

导航