FileInputStram/FileOutputStream的实例

import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;public class CopyFile{ public static void main(String[] args) { try { FileInputStream fis = new FileInputStream ("a.jpg");//本地中存在的文件 FileOutputStream fos = new FileOutputStrea...
wtuaimmmm 发布于 2010-05-21 14:13 | 阅读 953 次 | 评论 0 条

集合综合理论编

讲述的是集合一章中的内容Set:不区分元素的顺序,不允许出现重复的值list:区分元素的顺序,且允许出现重复的值map:采用key——values的,不允许有重复的键,每个键最多对应一个值java集合只能保存引用类型的数据,是对象的引用Collection接口描述set和list集合类型的根接口相关方法: add()如果增加重复元素,则增加失败,返回false contains()判断是否包含有某个元素 iterator()返回成一个迭代器List可以对元素的插入位置进...
wtuaimmmm 发布于 2010-05-21 11:08 | 阅读 970 次 | 评论 0 条

Arrays的实例

import java.util.List;import java.util.Arrays;public class TestArrays{ public static void main(String[] args) { Integer[] a = {3,25,12,79,48}; System.out.println(a); System.out.println(Arrays.toString(a)); Arrays.sort(a); System.out.println(Arrays.toString(...
wtuaimmmm 发布于 2010-05-21 11:07 | 阅读 874 次 | 评论 0 条

shuffle数字混排

import java.util.ArrayList;import java.util.Collections;public class Game{ ArrayList cards; public static void main(String[] args) { Game g = new Game(); g.deal(); g.display(); } public ArrayList deal(){ if(cards == null){ cards = new Array...
wtuaimmmm 发布于 2010-05-21 11:00 | 阅读 1087 次 | 评论 0 条

TestCollections实例

import java.util.Vector;import java.util.ArrayList;import java.util.Collections;import java.util.Enumeration;public class TestCollections{ public static void main(String[] args) { ArrayList alist = new ArrayList(); alist.add(75); alist.add(38); alist.add(21); ...
wtuaimmmm 发布于 2010-05-21 10:56 | 阅读 962 次 | 评论 0 条

HashMap的应用

import java.util.Set;import java.util.HashMap;import java.util.Collection;import java.util.Iterator;public class TestHashMap{ public static void main(String[] args) { HashMap hm = new HashMap(); hm.put(new Integer(1003),new Person(1003,"张三",15)); hm.put(new Integer(1008)...
wtuaimmmm 发布于 2010-05-21 10:39 | 阅读 1197 次 | 评论 0 条

Comparable实例

import java.util.TreeSet;import java.util.Iterator;public class TestComparable{ public static void main(String[] args) { TreeSet ts = new TreeSet(); ts.add(new Person(1003,"张三",15)); ts.add(new Person(1008,"李四",25)); ts.add(new Person(1015,"王五",73)); ts.add...
wtuaimmmm 发布于 2010-05-21 10:27 | 阅读 1169 次 | 评论 1 条

TreeS用的相关实例

import java.util.TreeSet;import java.util.Iterator;public class TestTreeSet{ public static void main(String[] args) { TreeSet ts = new TreeSet(); ts.add("orange"); ts.add("banana"); ts.add("apple"); ts.add("grape"); Iterator it = ts.iterator(); ...
wtuaimmmm 发布于 2010-05-21 10:13 | 阅读 898 次 | 评论 0 条

hashset的实例

package com.yds.review.list11;import java.util.Date;import java.util.HashSet;import java.util.Iterator;public class TestHashSet{ public static void main(String[] args) { HashSet h = new HashSet(); h.add("1st"); h.add("2nd"); h.add(new Integer(3)); h.add(new...
wtuaimmmm 发布于 2010-05-21 10:05 | 阅读 1049 次 | 评论 0 条

Iterator

import java.util.Date;import java.util.ArrayList;import java.util.Vector;import java.util.Iterator;public class TestIterator{ public static void main(String[] args) { ArrayList a = new ArrayList(); a.add("China"); a.add("USA"); a.add("Korea"); Iterator it...
wtuaimmmm 发布于 2010-05-21 09:58 | 阅读 910 次 | 评论 0 条

stack的实例

import java.util.Date;import java.util.Stack;public class TestStack{ public static void main(String[] args) { Stack s = new Stack(); s.push("hello"); s.push(new Date()); s.push(400); //自动封装,等价于s.push(new Integer(400)); s.push(3.14); System.o...
wtuaimmmm 发布于 2010-05-21 09:51 | 阅读 958 次 | 评论 0 条

vector实例

package com.yds.review.list11;import java.util.Date;import java.util.Vector;public class TestVector{ public static void main(String[] args) { Vector v = new Vector(); v.add("1st"); v.add("2nd"); v.add(new Integer(3)); v.add(new Double(4.0)); v.add("2...
wtuaimmmm 发布于 2010-05-21 09:44 | 阅读 1103 次 | 评论 0 条

第一个实例

package com.yds.review.list11;import java.util.Date;import java.util.ArrayList;public class TestArrayList{ public static void main(String[] args) { ArrayList h = new ArrayList(); h.add("1st"); h.add("2nd"); h.add(new Integer(3)); h.add(new Double(4.0)); ...
wtuaimmmm 发布于 2010-05-21 09:42 | 阅读 962 次 | 评论 0 条

C

#include<stdio.h>#include<stdlib.h>typedef struct student{ int id;//学号 char name[20]; int score; struct student *next;}stu,*spt;typedef struct{ spt head;//头指针 spt tail;//尾指针 spt current; spt p,q; int tot;}LinkStudent;void CreatLink(LinkStudent &amp;l)//构造空链表{ l.head=l.tail=(stu*)malloc(sizeof(stu...
chenfenyun 发布于 2010-05-20 23:53 | 阅读 333 次 | 评论 0 条

用javascript画圆,画得我想死的心都有了

刚学到javascript for这里,老师就出了画圆这个个题目给我,可是我画了4天,结果还是画一团糟,<body><script language="javascript"> for (i=1;i<250;i=i+10){ document.write("<img src=\"#\" id=\"d"+i+"\" width=\"3\" height=\"3\" style=\"background-color:#000000;left:20px; top:100px;position:absolute; \"/>"); } </script> 到底该怎么样设计才能...
雪域妙影 发布于 2010-05-20 22:12 | 阅读 786 次 | 评论 1 条

第一个Swing程序

package com.yds.gui.applet;import java.awt.Color;import java.awt.Container;import java.awt.GridLayout;import javax.swing.JFrame;import javax.swing.JLabel;public class JFtext1 { /** * @param args */ public static void main(String[] args) { JFrame jf=new JFrame(); Cont...
wtuaimmmm 发布于 2010-05-20 20:24 | 阅读 1031 次 | 评论 0 条

haha

测试一下
W11400661 发布于 2010-05-20 19:06 | 阅读 717 次 | 评论 0 条

验证码的生成

using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Drawing;public partial class c...
贾文慧 发布于 2010-05-20 17:57 | 阅读 1148 次 | 评论 3 条

又开始招互联网行业的技术和管理了

大型互联网公司的职位介绍 PHP系统开发工程师任职要求 : 1. 精通PHP开发语言,熟悉面向对象的软件设计方法; 2. 熟悉Unix/Linux操作系统,熟悉C/C++编程,熟悉Shell脚本编程及常用Unix管理命 令,熟悉bash/python/perl; 3. 熟悉HTTP协议及W3C相关互联网规范,熟练掌握XHTML、CSS、DIV、Javascript 等页面技术; 4. 熟悉MySQL数据库应用开发,了解MySQL的数据库配置管理、性能优化等基本操 作技能; 5. 具备良好的代码编程习惯及较强的文档编写能力; 6. ...
nideyan 发布于 2010-05-20 17:41 | 阅读 324 次 | 评论 0 条

打开文件对话框和保存文件对话框

package com.yds.gui.fourpart;import java.awt.Button;import java.awt.FileDialog;import java.awt.Frame;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;public class FileSave implements ActionListener{ Button b1,b2; FileDialog f_open,f_save; Frame f; public void Ui(){...
wtuaimmmm 发布于 2010-05-20 16:43 | 阅读 1158 次 | 评论 0 条