CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - INT 1
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - INT 1 - List
[
JSP/Java
]
Java聊天室程序
DL : 0
这个是服务器 import java.awt.*; import java.awt.event.*; import java.net.*; import javax.swing.*; public class UDPServerDemo extends JFrame{ int port=2345; //端口号 public UDPServerDemo(){ try{ byte[] buffer=new byte[256]; //缓冲区数组 DatagramSocket socket=new DatagramSocket(port); //实例化数据报Socket DatagramPacket packet; System.out.println("Server start..."); //输出运行信息 while (true){ packet=new DatagramPacket(buffer,buffer.length); //实例化数据报 socket.receive(packet); //接受请求 InetAddress target=packet.getAddress(); System.out.println("Received from"+target); //输出请求地址 int port=packet.getPort(); //得到接收端口 byte[] message="This is server,Who are you?".getBytes(); //服务器返回信息 packet=new DatagramPacket(message,message.length,target,port); //实例化数据报 socket.send(packet); //发送数据报 } } catch (Exception ex){ ex.printStackTrace(); //输出出错信息 } } public static void main(String[] args){ new UDPServerDemo(); } }
Date
: 2010-12-15
Size
: 1.04mb
User
:
594353482@qq.com
[
JSP/Java
]
jflltjxt
DL : 0
简介: 功能介绍: 1:多用户统计系统,防止刷新,速度快,适用广泛 2:综合统计,最近访问,地区分析,地址分析,屏幕大小,来访页面,访问次数, 操作系统,当前在线,IP地址,浏览器,年报表,月报表,周报表,历史报表,日报 表等 3:可以精确的跟踪统计每一位来访者的IP与在线时间-同一IP在线每隔5分钟 才能增加一个计数(你也可以修改时间,在stat.jsp页你把ExTime改为你想要 的时间,即 int ExTime=5;)。 4:提供详细IP数据包,让你清楚的知道来访者是来是何方 用户名:admin,密码:admin-Description: Features: 1: Multi-user statistical system to prevent the refresh speed, applicable to a wide range 2: General Statistics, a recent visit, regional analysis, address analysis, screen size, visit the page, visits, operating system, the current line, IP address, browser, Annual Report, the monthly statements, Zhou statements, historical statements, statements such as day 3: can accurate tracking statistics every visitors IP and online time- the same IP online every five minutes in order to add a count ( You can also modify the time, you stat.jsp page ExTime you want to read the time, that int ExTime = 5 ). 4: to provide detailed IP data packets, so you clearly know that visitors come to is where the user name: admin, Password: admin
Date
: 2026-01-06
Size
: 353kb
User
:
莲叶
[
JSP/Java
]
jspjdlyb
DL : 1
留言本 需要修改的地方都有注释 你可以自行修改 主要有login.jsp和jdbc.java里面关系都数据库连接部分 jdbc你修改编译之后请放到WEB-INF\classes\wu目录下面 数据库采用的是mysql 建表语言是: CREATE TABLE liuyan_temp ( id int(6) NOT NULL auto_increment, url varchar(100) default # , ip varchar(20) default NULL, email varchar(50) default # , qq varchar(20) default NULL, sj varchar(30) default NULL, content text, xm varchar(20) default 没有姓名 , KEY id (id) ) TYPE=MyISAM -message of the need to amend parts of the Notes you may login.jsp major changes inside and jdbc.java relations Database Connection part jdbc compiler changes after you please put WEB-INF \ classes \ wu directory database using the mysql language is built table : CREATE TABLE liuyan_temp (id int (6) NOT NULL auto_increment, url varchar (100) default#, ip varchar (20) default NULL, email varchar (50) default#, qq varchar (20) default NULL, sj varchar ( 30) default NULL, content text, xm varchar (20) no default name, KEY id (id)) TYPE = MyISAM
Date
: 2026-01-06
Size
: 809kb
User
:
唐文斌
[
JSP/Java
]
jfcountv1.0
DL : 0
【首语】 非常感谢你能够对季风流量统计系统感兴趣。不管你是JAVA的初学者、还是JAVA的高手,对我敢肯定的对你说,中国JAVA技术的方发展,甚至我们中国软件业的发展,就是靠我们这些对软件开发感兴趣的人。 【说明】 本系统源代码是完全公开,绝无保留,无需注册,完全免费。各位大虾们也可对源代码时行自由修改和优化,尽量能够推出更好的版本,为广大网友免费下载。本系统使用潇湘多用户统计系统(asp版)的图片,我在此感谢网上给论坛免费提供图标,源码的技术人员,谢谢你们。 【功能】 1:多用户统计系统,防止刷新,速度快,适用广泛 2:综合统计,最近访问,地区分析,地址分析,屏幕大小,来访页面,访问次数,操作系统,当前在线,IP地址,浏览器,年报表,月报表,周报表,历史报表,日报表等 3:可以精确的跟踪统计每一位来访者的IP与在线时间-同一IP在线每隔5分钟才能增加一个计数(你也可以修改时间,在stat.jsp页你把ExTime改为你想要的时间,即 int ExTime=5 )。 4:提供详细IP数据包,让你清楚的知道来访者是来是何方。 -first language-- thank you very much for the monsoon flow to the statistical systems of interest. Whether you are a beginner Java, or Java experts, I am sure you said that the Chinese side Java technology development, and even China's software industry development, which is to rely on our software development to interested persons. [Note : the system source code is completely open and no reservations are not required to register, free of charge. Nowadays you may also right at the source code and the freedom to change line optimization, as to deliver a better version of the majority of netizens free download. The system uses statistical Xiaoxiang multi-user system (asp) edition of the pictures, I would like to thank the online forum to provide free icon, source of technical personnel,
Date
: 2026-01-06
Size
: 361kb
User
:
长旺
[
JSP/Java
]
2006HANNOI
DL : 0
HANNOI-塔 3.4.1. 运行效果与程序发布 3.4.2. 主类 Tower 3.4.3. Hannoi-塔 HannoiTower 3.4.4. 塔点 TowerPoint 3.4.5. 盘子 Disk -HANNOI-tower 3.4.1. Operation and Release 3.4.2. Main categories Tower 3.4.3. Hannoi-tower HannoiTower 3.4.4. Tap point TowerPo int 3.4.5. dishes Disk
Date
: 2026-01-06
Size
: 4kb
User
:
汪汪
[
JSP/Java
]
MMSMIDlet
DL : 0
THIS SOURCE CODE IS PROVIDED AS IS , WITH NO WARRANTIES WHATSOEVER, EXPRESS OR IMPLIED, INCLUDING ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE, RELATING TO THE SOURCE CODE OR ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION, OR SAMPLE AND WITH NO OBLIGATION OF NOKIA TO PROVIDE THE LICENSEE WITH ANY MAINTENANCE OR SUPPORT. FURTHERMORE, NOKIA MAKES NO WARRANTY THAT EXERCISE OF THE RIGHTS GRANTED HEREUNDER DOES NOT INFRINGE OR MAY NOT CAUSE INFRINGEMENT OF ANY PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OWNED OR CONTROLLED BY THIRD PARTIES-THIS SOURCE CODE IS PROVIDED AS IS. WITH NO WARRANTIES WHATSOEVER. EXPRESS OR IMPLIED, INCLUDING ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE. OR ARISING FROM A COURSE OF DEALING. USAGE OR TRADE PRACTICE. RELATING TO THE SOURCE CODE OR ANY WARRANTY OTHE RWISE ARISING OUT OF ANY PROPOSAL. SPECIFICATION. OR SAMPLE AND WITH NO OBLIGATION OF NOKIA TO PROV IDE THE LICENSEE WITH OR ANY threatening SUPPOR T. FURTHERMORE. NOKIA MAKES NO WARRANTY THAT THE EXERCISE OF RIG HTS GRANTED HEREUNDER DOES NOT INFRINGE OR MAY N OT CAUSE OF ANY PATENT INFRINGEMENT OR OTHER INT ELLECTUAL PROPERTY RIGHTS OWNED OR CONTROLLED BY THIRD PARTIES
Date
: 2026-01-06
Size
: 41kb
User
:
lyva1982
[
JSP/Java
]
cwq4
DL : 0
There is a shared object – int array[] between Write and Read. Write sets the array, Read gets the array and sorts ascending. Write a program to implement the write/read question by using synchronization mechanism and GUI. -There is a shared object- int array [] between Write and Read. Write sets the array, Read gets the array and sorts ascending. Write a program to implement the write/read question by using synchronization mechanism and GUI.
Date
: 2026-01-06
Size
: 3kb
User
:
huang
[
JSP/Java
]
RequestHandler
DL : 0
Request代理 简化服务器端取值 包括int double String 及数组-Request Agent value simplify server-side includes and the int double String array
Date
: 2026-01-06
Size
: 1kb
User
:
degen
[
JSP/Java
]
L1_vector
DL : 1
输入四个点,判断此四点是否可形成一个平行四边形。 程序中描述了一个抽象数据类型Vector2D,表示一个向量。具有(x,y)两个值。其本身具有减另一个向量(minus(Vector2D)),判断自身是否为零向量(iszero()),与另一个向量对应值y,x乘积之差(inner(Vector2D))。由于两个向量平行,则乘积之差x1*y2-x2*y1=0。点A,B,C,D四点组成平行四边形的条件是AB//CD,BC//DA且各个向量皆不为零向量。 首先声明四个向量。向量i获得值的方法是由getPoint(int i)获得。然后根据Vector2D重载后的toString()函数将各个向量输出查看。最后判断此四点是否可组成平行四边行。
Date
: 2026-01-06
Size
: 3kb
User
:
malacca
[
JSP/Java
]
CRC16
DL : 0
CRC16算法的Java实现,使用方法如下: CRC16 crc16 = new CRC16() byte[] b = new byte[] { // (byte) 0xF0,(byte)0xF0,(byte)0xF0,(byte)0x72 (byte) 0x2C, (byte) 0x00, (byte) 0xFF, (byte) 0xFE, (byte) 0xFE, (byte) 0x04, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 } for (int k = 0 k < b.length k++) { crc16.update(b[k]) } System.out.println(Integer.toHexString(crc16.getValue())) System.out.println(Integer.toHexString(b.length)) -CRC16 algorithm realize Java, use the following method: CRC16 crc16 = new CRC16 () byte [] b = new byte [] (//(byte) 0xF0, (byte) 0xF0, (byte) 0xF0, (byte) 0x72 (byte ) 0x2C, (byte) 0x00, (byte) 0xFF, (byte) 0xFE, (byte) 0xFE, (byte) 0x04, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00) for ( int k = 0 k
Date
: 2026-01-06
Size
: 1kb
User
:
zhangQ
[
JSP/Java
]
snake
DL : 0
贪吃蛇*要点分析: *1)数据结构:matrix[][]用来存储地图上面的信息,如果什么也没有设置为false, * 如果有食物或蛇,设置为true;nodeArray,一个LinkedList,用来保存蛇的每 * 一节;food用来保存食物的位置;而Node类是保存每个位置的信息。 *2)重要函数: * changeDirection(int newDirection) ,用来改变蛇前进的方向,而且只是 * 保存头部的前进方向,因为其他的前进方向已经用位置来指明了。 其中newDirection * 必须和原来的direction不是相反方向,所以相反方向的值用了同样的奇偶性。在测试 * 的时候使用了direction%2!=newDirection%2 进行判断。 * moveOn(),用来更新蛇的位置,对于当前方向,把头部位置进行相应改变。如果越界, * 结束;否则,检测是否遇到食物(加头部)或身体(结束);如果什么都没有,加上头部, * 去掉尾部。由于用了LinkedList数据结构,省去了相当多的麻烦。
Date
: 2026-01-06
Size
: 3kb
User
:
yy
[
JSP/Java
]
CopyFile
DL : 0
基于某一文件创建一个输入流,然后基于某一文件创建一个输出流,定义一个int类型的变量,用来记录读出的字节个数,将输入流中的信息写入字节数组中,使用输出流的方法,将数组中的信息写入文件中-Create a file based on an input stream, and then create a file based on an output stream, the definition of an int type of variable, used to record the number of bytes read the input stream of information written into the byte array, the the use of the output flow method to write an array of information documents
Date
: 2026-01-06
Size
: 1kb
User
:
sport
[
JSP/Java
]
matrix
DL : 0
(1) 设计和编写代表矩阵的Matrix类。该类包括矩阵行列数变量int rows和int cols,矩阵数据数组double data[][],构造方法Matrix()、Matrix(int rows,int cols)、Matrix(int rows,int cols,double data[][]),获取某元素值的方法getData(int row,int col),设置某元素值的方法setData(int row,int col,double value),计算两个矩阵的乘积的方法multiply(Matrix m)以及toString()等内容。-(1) design and preparation on behalf of Matrix Class Matrix. Including the ranks of such matrices int rows and the number of variables int cols, matrix data array double data [][], constructor Matrix (), Matrix (int rows, int cols), Matrix (int rows, int cols, double data [] []), to obtain the value of a certain element method getData (int row, int col), set the value of a certain element method setData (int row, int col, double value), the product of two matrices calculation method multiply (Matrix m) as well as the toString () and so on.
Date
: 2026-01-06
Size
: 7kb
User
:
fangfei
[
JSP/Java
]
bao
DL : 0
(1) 实现一个Point类,该类包含表示坐标的两个int型变量x、y,构造方法Point()和Point(int xx, int yy),返回x值和y值的int getX()和int getY()方法,计算两点间距离的double distance(Point)方法。其中计算平方根用Math.sqrt()方法。 (2) 实现一个Circle类,该类包含表示圆心的Point型变量center,表示半径的int radius变量,以及构造方法Circle()、Circle(int xx,int yy,int r)、Circle(Point c,int r),返回周长和面积的int perimeter()、double area()方法,返回两个圆是否为同一个圆(返回0)、同心圆(返回1)、相交的圆(返回2)、分离的圆(返回3)、包含的圆(返回4)等关系的int relation(Circle c)等方法。PI值可以用Math.PI常量。 (3) 实现测试上述两个类的ClassTest类。该类在main方法中分别创建若干个Point对象和Circle对象,并调用相关方法,输出方法的返回值,验证其正确性。 (4) 将Point类、Circle类和主类的包名分别调整为p1、p2、p3,并重新运行,验证是否运行正确。
Date
: 2026-01-06
Size
: 5kb
User
:
fangfei
[
JSP/Java
]
SSH2_BY_annotations
DL : 0
SSH2工程模板 struts2.1.8 + Spring2.5+ Hibernate3.2 Spring 用注解方式-antlr-2.7.6.jar asm-2.2.3.jar asm-commons-2.2.3.jar asm-util-2.2.3.jar c3p0-0.9.1.2.jar cglib-nodep-2.1_3.jar common-annotations.jar commons-collections.jar commons-dbcp.jar commons-fileupload-1.2.1.jar commons-io-1.3.2.jar commons-logging-1.0.4.jar commons-logging-api-1.1.jar commons-pool.jar dom4j-1.6.1.jar ejb3-persistence.jar freemarker-2.3.15.jar hibernate-annotations.jar hibernate-commons-annotations.jar hibernate3.jar jta.jar log4j.jar msbase.jar mssqlserver.jar msutil.jar ognl-2.7.3.jar spring-beans.jar spring-context-2.5.6.jar spring-context.jar spring-core-2.5.6.jar spring-core.jar spring-orm.jar spring-tx.jar spring-web-2.5.6.jar spring-web.jar spring-webmvc-portlet.jar spring-webmvc-struts.jar spring-webmvc.jar spring.jar struts2-core-2.1.8.1.jar struts2-spring-plugin-2.1.8.1.jar xwork-core-2.1.6.jar 数据库ms sql database zqkdev table tb_user fields uid int username nvarchar password nvarchar
Date
: 2026-01-06
Size
: 34kb
User
:
[
JSP/Java
]
1
DL : 0
多用户统计系统,防止刷新,速度快,适用广泛 2:综合统计,最近访问,地区分析,地址分析,屏幕大小,来访页面,访问次数,操作系统,当前在线,IP地址,浏览器,年报表,月报表,周报表,历史报表,日报表等 3:可以精确的跟踪统计每一位来访者的IP与在线时间-同一IP在线每隔5分钟才能增加一个计数(你也可以修改时间,在stat.jsp页你把ExTime改为你想要的时间,即 int ExTime=5 )。 4:提供详细IP数据包,让你清楚的知道来访者是来是何方 用户名:admin,密码:admin -Multi-user statistics system, to prevent refresh speed, for a wide range 2: General Statistics, who recently visited, territory, address Fenxi, screen sizes, visit the page, number of visits, operating system, the current line, IP address, browser, Nian Report , Monthly Report, Week report, history report, daily report, etc. 3: You can track the exact statistics of every visitor' s IP and online time- the same IP line every 5 minutes to add a count (you can also modify the time, stat.jsp pages to ExTime to what you want your time, that is, int ExTime = 5 ). 4: to provide detailed IP data packets, so you know exactly where visitors come to is the user name: admin, Password: admin
Date
: 2026-01-06
Size
: 346kb
User
:
lindsay
[
JSP/Java
]
zzz
DL : 0
import java.applet.* import java.awt. event.* public class AutoMaze extends Applet { int GridX=15,GridY=15 int Si,Sj,Ei,Ej int[][] maze = new int[30][30] int enter=20,width=20-import java.applet.* import java.awt.* import java.awt.event.* public class AutoMaze extends Applet { int GridX=15,GridY=15 int Si,Sj,Ei,Ej int[][] maze = new int[30][30] int enter=20,width=20
Date
: 2026-01-06
Size
: 30kb
User
:
咋的
[
JSP/Java
]
1
DL : 0
运行下列程序,分析super关键字的使用,以及父类与子类之间的隐藏和重写关系 class superClass{ int x superClass( ){ x = 3 System.out.println("in superClass : x = "+x) } void doSomething( ){ System.out.println("in superClass.doSomething( )") } class subClass extends superClass{ int x subClass( ){ super( ) //call constructor of superClass x = 5 System.out.println("in subClass : x = "+x) } void doSomething( ){ super.doSomething( ) //call method of superClass System.out.println("in subClass.doSomething( )") //call x of superClass System.out.println("super.x = "+super.x+" sub.x = "+x) } } public class inheritance{ public static void main( String args[ ] ){ subClass subC = new subClass( ) subC.doSomething( ) } } -Run the following procedure to use the super keyword analysis, as well as the parent class and subclass relationship between the hidden and rewriting class superClass {int x superClass () {x = 3 System.out.println (" in superClass: x = " +x) } void doSomething () {System.out.println (" in superClass.doSomething () " ) }} class subClass extends superClass {int x subClass () {super () // call constructor of superClass x = 5 System.out.println (" in subClass: x =" +x) } void doSomething () {super.doSomething () // call method of superClass System.out.println (" in subClass.doSomething () " ) // call x of superClass System.out.println (" super.x = " +super.x+" sub.x = " +x) }} public class inheritance {public static void main (String args [] ) {subClass subC = new subClass () subC.doSomething () }}
Date
: 2026-01-06
Size
: 3kb
User
:
小馒头
[
JSP/Java
]
huaweiOJ-string-of-int-to-sort
DL : 0
华为oj闯关题 整形字符串排序。希望对做到华为oj上闯关题的同学们有一点点参考作用-huaweiOJ string of int to sort.I hope a little reference to the students who are preparing for the HUAWEI OJ checkpoints problem
Date
: 2026-01-06
Size
: 3kb
User
:
夏天
[
JSP/Java
]
ByteUtils
DL : 0
数值转换 byte 与 int short float double string long 等的转换(Numerical conversion)
Date
: 2026-01-06
Size
: 2kb
User
:
老白87
«
1
2
3
4
5
6
7
8
9
10
...
13
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.