Classic source code

xiaoxiao2021-03-06  37

[Resources] Classic source code

MD5 Java Bean Realization (Click: 4563) (2002-10-21 00:00:00)

MD5 Introduction The full name of MD5 is Message-Digest Algorithm 5, invented by MIT's computer science laboratories and RSA Data Security Inc invented by MD2, MD3 and MD4 in the 1990s. 21 "bad taste" of 21 codes (click: 4184) (2001-12-15 00:00:00)

1. Duplicated Code code is almost the most common odor. He is also one of the main goals of Refactoring. Code repeats often come from Copy-And-Paste Java implementation FTP function (source program) (click: 19571) (2001-12-08 00:00:00)

Import sun.Net.ftp. *; import sun.net. *; import java.awt. *; import java.awt.event. *; import java.applet. *; Java URL programming (click: 6197) (2001- 12-08 00:00:00)

Import java.io. *; import java.net. *; ///// gethost.javajava RMI programming (click: 4263) (2001-12-08 00:00:00)

Step 1: Implements The Interface of Remote Server As SimpleCounterserver.javapublic Interface SimpleCounterserver Extends Java.rmi.Remotejava Corba Getting Started (click: 3467) (2001-12-08 00:00:00)

BELOW Is A Simple EXAMPLE OF A CORBA ProgramDownload The Source File 1. Produce A Idl File Like This takes RamdonAccessFile to implement files (click: 2922) (2001-12-08 00:00:00)

RamdonAccessFile is a very good class, which is very powerful. You can use its length () and seek () methods to easily implement the additional files, I believe I will put JavaMail into simple Sendmail (click: 3294) 2001-11-27 00:00:00)

Package steeven; / * calss: sendmailauthor: switch@kali.com.cnhashtable Easy Database Program (click: 5149) (2001-09-28 00:00:00)

Import java.io. *; import java.util. *; Class str14 {inputStreamReader stdin = new infutStreamReader (system.in); Java core code routine: HelloWorld.Java (click: 32767) (2001-09-2000 : 00:00)

// The Most Basic Java Programpublic Class HelloWorld {Public Static Void Main (String Args []) THROWS ExceptionJava core code routine: StringBufferDemo.java (click: 6977) (2001-09-20 00:00:00)

/ *** Demo use of a stringbuffer *** / public class stringbufferDemo {Java core code routine: PropertiesDemo.java (click: 4124) (2001-09-20 00:00:00) Import java.util. * Import java.io. *; / ** java core code routine: VectorDemo.java (click: 3989) (2001-09-20 00:00:00)

Import java.util. *; / *** Demonstrates how to use a vector (essential a growth array): DateFormat.java (click: 4296) (2001-09-20 00:00:00 )

Import java.text. *; / *** demo Date formatting. *** / Java core code routine: RmiexampleServer.java (click: 3510) (2001-09-20 00:00:00)

Import java.rmi. *; import java.rmi.server. *; / *** this class is a Simple Example of a RMI Serverjava core code routine: Calendardemo.java (Click: 3339) (2001-09-20 00:00:00)

Import java.util. *; / *** Demo Calendar class. *** / java core code routine: SimpleApplet.java (click: 2916) (2001-09-20 00:00:00)

Import java.applet. *; import java.awt. *; / ** this demo Uses JDK 1.0 Event Model for Browser CompatibilityJava core code routine: StringToint.java (click: 2754) (2001-09-20 00:00 : 00)

/ *** Demo HOW TO Convert Int to string and back. Similar * Stuff Can Be Done with the float, double, etc. Classesjava core code routine: ThreadDemo.java (Click: 2965) (2001-09-2000 : 00:00)

/ *** Demo How Threads in java work *** / public class threadDemoExtens threadjava core code routine: SortDemo.java (click: 2474) (2001-09-20 00:00:00)

Import java.util. *; / *** Demonstrates how to sort strings.java core code routine: ShowFileContent.java (click: 2723) (2001-09-20 00:00:00)

Import java.io. *; // read a file Using buffreader.readline () public class showfilecontent {Java core code routine: jdbc.java (click: 3990) (2001-09-20 00:00:00)

Import java.sql. *; / *** SIMPLE DEMO OF HOW TO PERFORM A SQL Query Using JDBC. ** / Java Core Code Routine: ProcessDemo.java (click: 2258) (2001-09-20 00:00 : 00) Import java.io. *; / *** Demonstrates how to Run a program and read it "s Outputjava core code routines: ServersocketDemo.java (click: 2954) (2001-09-20 00:00: 00)

Import java.io. *; import java.net. *; / ** java core code routine: ClientsocketDemo.java (click: 2640) (2001-09-20 00:00:00)

Import java.io. *; import java.net. *; / ** java core code routine: DataGramserverDemo.java (click: 2227) (2001-09-20 00:00:00)

Import java.io. *; import java.net. *; / ** java core code routine: DataGramClientDemo.java (click: 2038) (2001-09-20 00:00:00)

Import java.io. *; import java.net. *; / ** java core code routine: HelloWorld.java (2) (Click: 2173) (2001-09-20 00:00:00)

Import java.lang.reflect.method; import java.lang.reflect.InvocationTargeTexception; / *** Main () Invokes "Hello World" Reflectively.Java core code routine: jniexample.java (click: 2183) (2001- 09-20 00:00:00)

/ *** this class is a simple example this class a native function * @Author RENGA ** / public class jniexample {Java core code routine: jniexample.cpp (click: 1753) (2001-09-20 00:00 : 00)

#include "jniexample.h" / *** this method just returns the string "Hello World from jni!" to the caller

Java core code routines: jniexample.h (click: 1561) (2001-09-20 00:00:00)

/ * Do not edit this file - it is machine generated ** / # include

/ * Header for class jniexample ** /

Java core code routine: RMICLIENT.JAVA (click: 1797) (2001-09-20 00:00:00)

Import java.rmi. *; / *** this class is the client for rmiexampleserver * @Author RENGAJAVA core code routine: rmiexample.java (click: 1741) (2001-09-20 00:00:00)

Import java.rmi. *; / *** Remote interface for the rmiexampleServer * @Author RENGAJAVA core code routine: rmiexampleSetup.java (click: 1649) (2001-09-20 00:00:00) Import java.rmi IMPORT JAVAX.NAMING. *; / *** This Class Registers RMIEXAMPLER WITH The RMI Registryjava core code routine: java.policy (click: 1813) (2001-09-20 00:00:00)

Grant {Java core code routine: JSP --- Simple.jsp (click: 1934) (2001-09-20 00:00:00)

-------------------------------------------------- ----------------------------- Date: <% = new java.util.date ()%> java core code routine : Servlet --- SimpleServlet.java (click: 1952) (2001-09-20 00:00:00)

Import java.io. *; import javax.servlet. *; import javax.servlet.http. *; Java core code routine: javamail ---- Popmail.java (click: 2764) (2001-09-20 00 : 00:00)

Import java.io. *; import javax.mail. *; import javax.mail.internet. *; Java core code routine: JavaMail ---- SMTPMail.java (click: 2470) (2001-09-20 00:00:00)

Import java.io. *; import java.util. *; import javax.mail. *; import javax.mail.internet. *; java core code routine: (JAX) DOM (click: 1875) (2001-09 -20 00:00:00)

Import javax.xml.parsers. *; import org.w3c.dom. *; import org.xml.sax. *; / ** java core code routine: (JAX) XSL Transformation (click: 1663) (2001- 09-20 00:00:00)

Import javax.xml.transform. *; import javax.xml.Transform.Stream. *; / *** TransformDemo Usess jaxp to acquire an xml transformer code routine: (JAX) SAX (click: 1776) (2001-09-20 00:00:00)

Import javax.xml.parsers. *; import org.xml.sax. *; / ** java core code routine: (JAX) Cart.xml (click: 1530) (2001-09-20 00:00:00 )

Java core code routines: (EJB) Home Interface (click: 1479) (2001-09-20 00:00:00)

/ *** Home interface for helloWorldSessionBean ** @see helloWorldSessionBean ** / java core code routine: (EJ) Remote Interface (click: 1415) (2001-09-20 00:00:00) / *** Remote Interface for helloworldsessionBean ** @see helloworldsessionBean ** / java core code routine: (EJB) Bean (click: 2530) (2001-09-20 00:00:00)

Import Java.io. *; import java.util. *; import java.rmi. *; import javax.ejb. *; session (click: 1700) (2001-09-20 00:00:00)

<% @ page language = javaScript%> <% / * session.jsp * * Trivial Example of session variables, Just Stores A Counter a complete upload bean (click: 1668) (2001-09-20 00:00:00)

// Title: CNJSP "S Project // Version: // Copyright: Copyright (c) 1999 // Author: Popeye // Company: Implementation of CNJSP tree structure (Click: 3584) (2001-09-20 00:00 : 00)

This example uses Access as an example, and there are many places to improve. Please read the reader to improve the Package Product; Import Java.sql. *; User Login Verification Complete Program (click: 16112) (2001-09-20 00:00:00)

Public String ValidateUser (String InputUserid, String InputPwd) Throws Sqlexception {String Returnstring = NULL; Some Very useful Java Common Method (1) (Click: 5838) (2001-09-05 00:00:00)

<%! STC_RSYB_NAME STCRSYNAME1 []; STC_SYB_INF stcsybinf1 [];%> Yin Yang calendar algorithm (click: 2489) (2001-09-05 00:00:00)

The program is: / * Volley calendar conversion program Huang Xiaoming 1995, 7, 25 gives you a relatively full amount of time to operate (click: 3332) (2001-08-22 00:00:00)

Import java.text.dateformat; import java.util. *; public class jspcalendar {Calendar Calendar = NULL; General Guide to Java Code (Click: 3013) (2001-03-25 00:00:00)

(1) The name of the class name should be capitalized. The first letters of fields, methods, and objects (handles) should be lowercase. For all identifiers, all words contained should be close to, and the first letters of the intermediate word. E.g:

转载请注明原文地址:https://www.9cbs.com/read-76020.html

New Post(0)