java class diagram tool

Alibabacloud.com offers a wide variety of articles about java class diagram tool, easily find your java class diagram tool information here online.

Java Collection Tool Class---Collections/arrays

/* *collections Tool class for manipulating List/set *arrays tool class for manipulating arrays */package pack;import java.util.arraylist;import java.util.Arrays; Import Java.util.collections;import java.util.comparator;import Java.util.list;import java.util.TreeSet;public C

Java Common Regular Expression validation tool class Regexutils.java

Original: Java common regular Expression validation tool class Regexutils.javaSource code: Http://www.zuidaima.com/share/1550463379442688.htmJava Forms register a common regular expression validation tool class, a large collection of commonly used regular expressions.1. Phon

Java Export XLS Generic tool class

Java Export XLS Generic tool classPackage Org.rui. Util;import Java.io.bytearrayinputstream;import Java.io.bytearrayoutputstream;import Java.io.IOException;import Java.io.inputstream;import Java.lang.reflect.invocationtargetexception;import Java.lang.reflect.Method;import Java.text.simpledateformat;import Java.util.arraylist;import Java.util.date;import Java.util.List;import Java.util.map;import Java.util.m

Java Serialization Tool Class

; ObjectInputStream ois = null; try {bis = new Bytearrayinputstream (new Base64decoder (). Decodebuffer (object)); OIS = new ObjectInputStream (bis); Object o = Ois.readobject (); return o; } catch (IOException e) {logger.error ("Deserialization error: IO exception", e); } catch (ClassNotFoundException e) {logger.error ("deserialization Error: Class not found", e); }finally {t

. Class into a. Java Anti-compilation tool Jad

If you want to study someone else's code, but you have only. class file, if you convert class to Java file, Jad can be implemented, about Jad download, many online, you can download it yourself.If you install Jad in the C:\jad directory,1. First copy the compiled generated Test.class file to this directory,2. Enter Jad in the Command Window environment and run ja

Java Reflection Tool Class

Mport Java.lang.reflect.Array; Import Java.lang.reflect.Constructor; Import Java.lang.reflect.Field; Import Java.lang.reflect.invocationtargetexception;import Java.lang.reflect.method;public class Reflection {/** * Get the public properties of an object * * @param owner, FieldName * @return The Property object * @throws Exception * */Public Object GetProperty (object owner, String fieldName) throws Exception {

Java Collection (Tool class arrays)

[] args) {ArraylistA1.add ("ABC1");A1.add ("ABC2");A1.add ("ABC3");for (String s:a1)SOP (s);HashmapHm.put (1, "a");Hm.put (2, "B");Hm.put (3, "C");For (Integer I:hm.keyset ())SOP (i+ "::" +hm.get (i));For (map.entrySOP (me+ "::" + "--" +me.getkey () +me.getvalue ());}public static {System.out.println (t);}}/** New features in version 1.5, 1. Variable parameters:* is a shorthand form of an array parameter that does not have to be set up manually every time the array object is created.* Simply p

Java Foundation--Set (iii)--generics, enhanced for, tool class

Next, "Java Foundation--Set (ii)--iterator, Map collection"Six. Generic type(1) Definition: generics are special types that put explicit types of work in the form of creating objects or calling methods. (2) Format: Arraylist(3)Benefits: (Master)A: solved the yellow warning line problemB: To advance the conversion exception during the run to the compile timeC: optimized programming, no forced type conversions required(4) Development of generics

Java Common Regular Expression validation tool class Regexutils.java_java

Regular expressions are often used to validate various forms, Java forms register common Regular Expression validation tool classes, and common regular expression large collections. 1. Telephone number 2. zip Code 3. QQ 4. E-Mail 5. Mobile phone number 6. URL 7. Whether it is a digital 8. Whether it is Chinese 9. Identity card 10. Domain Name IP ..... Common validation Everything! This is indeed

Java-des algorithm encryption and Decryption tool class

* Decrypted file name such as c:/test/after decryption file. txt*/ Public voidDecryptFile (string file, String dest)throwsException {Cipher Cipher= Cipher.getinstance ("DES" ); Cipher.init (cipher. Decrypt_mode, This. Key); InputStream is=Newfileinputstream (file); OutputStream out=NewFileOutputStream (dest); CipherOutputStream Cos=NewCipherOutputStream (out, cipher); byte[] buffer =New byte[1024]; intR; while((r = is.read (buffer)) >= 0) {cos.write (buffer,0, R); } cos.close ();

JAVA-JDBC Tool Class Jdbcutil

e) {throw new RuntimeException (e); }} public static Connection getconnection () throws Exception {if (conn! = null) {return Conn } class.forname (drivername); conn = Drivermanager.getconnection (URL, USER, PASSWORD); Return conn; } public static void Closeresource (Connection conn, PreparedStatement St) throws SQLException {st.close (); Conn.close (); } public static void Closeresource (Connection conn, ResultSet RS, PreparedStatement St) throws SQLException {St.close (); Rs.close

Java Web-based JdbcUtils tool class final and javawebjdbcutils

Java Web-based JdbcUtils tool class final and javawebjdbcutils The final version of JdbcUtils tool class 3.0 adds transaction-related functions and release links. The final version can be directly packaged into a jar package, which will be used in subsequent basic projects.

Wordutil Java Export Word tool class

File = new file (path);Gets the file name.String filename = File.getname ();Download the file in the form of a stream.InputStream fis = new Bufferedinputstream (new FileInputStream (file));byte[] buffer = new byte[fis.available ()];Fis.read (buffer);Fis.close ();Empty responseResponse.reset ();Set the header of the responseString filename = urlencoder.encode (filename, "UTF-8");if (Filename.length () >150) {//fix IE 6.0 bugFilename=new String (filename.getbytes ("GBK"), "iso-8859-1"); }Response

Java ID Validation Tool class

= idcard.substring (6,Ten); month = idcard.substring (Ten, A); Day = idcard.substring ( A, -); }Else{//processing non-18-digit ID cardYear = idcard.substring (6,8); month = idcard.substring (8,Ten); Day = idcard.substring (Ten, A); Year ="very"+ year; }return NewSimpleDateFormat ("Yyyy-mm-dd"). Parse (year +"-"+ Month +"-"+ day); }/** * @throws parseexception * * Based on ID card * * * Public Static int Getage(String Idcard)throwsparseexception {Calendar Calbirth = calendar.getinstance ();

Java learns from zero 24 points (Collection tool class collections)

PackageCom.pb.demo2;Importjava.util.Arrays;Importjava.util.List; Public classTest1 { Public Static voidMain (string[] args) {String str= "A,b,c,d,e,f"; Listarrays.aslist (str); System.out.println ("Length of List1:" +list1.size ()); for(String s:list1) {System.out.print (s+ "\ T"); } System.out.println ("\ nthe collection is separated by commas"); List)); System.out.println ("Length of List2:" +list2.size ()); for(String s:list2) {System.out.print (s+ "\ T"); } }}Results:Length of List1:

Java MD5 SHA encryption using the Method tool class MessageDigest

Package Test;import Java.security.messagedigest;import java.security.nosuchalgorithmexception;/** * Cryptographic Tool class * @author GXD * */public class Encriptutil {public static void main (string[] args) {String str = "I love you 23"; System.out.println (ENCRIPTUTIL.GETMD5 ("MD5", str));} public static string GetMd5 (String type, String str) {string md5str =

Java Concurrency Tool class Cyclicbarrier

Cyclicbarrier Synchronization BarrierThere is a class called Cyclicbarrier in the Java Concurrency Tool class, similar to Countdownlatch, where synchronization between threads is possible, but the difference is that Cyclicbarrier is a reset synchronization barrier.Imagine a scene, there are n people to go to a door at

Java Load Properties configuration file Tool class

(String key, String defaultvalue) {String value=Configmap.get (key); if(Value = =NULL|| Value.trim (). Length () = = 0) {Value=DefaultValue; } assertStringutils.isnotblank (value); returnvalue; } Private Staticstring Getsimplevalue (String key) {returnConfigmap.get (key). ToString (); } Public StaticString Getestopichost () {returnGetsimplevalue ("DataSource.es.topic.host"); } Public StaticString Getesuserloghost () {returnGetsimplevalue ("DataSource.es.userlog.host"); } P

Java Basic Knowledge Hardening Collection Framework note 33:arrays Tool class using the Aslist () method

1. Use of the Aslist () method in the Arrays tool class1 Public static arrays into setsPrecautions:Although you can turn an array into a collection, the length of the collection cannot be changed .2. code example:(1)1 Packagecn.itcast_03;2 3 Importjava.util.Arrays;4 Importjava.util.List;5 6 /*7 * public static 8 * 9 * Precautions:Ten * Although you can turn an array into a collection, the length of the collection cannot be changed. One */ A Publ

Java Reflection Tool Class

Package Com.su.dolphin.utils;import Java.lang.reflect.array;import Java.lang.reflect.constructor;import Java.lang.reflect.field;import Java.lang.reflect.invocationtargetexception;import java.lang.reflect.Method;/** * * @className: Reflectionutil * @description: Reflection Tool Class * @author: Gaoshuai * @date: August 5, 2015 PM 4:51:49 */public Class Reflectio

Total Pages: 15 1 .... 7 8 9 10 11 .... 15 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

not found

404! Not Found!

Sorry, you’ve landed on an unexplored planet!

Return Home
phone Contact Us
not found

404! Not Found!

Sorry, you’ve landed on an unexplored planet!

Return Home
phone Contact Us

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.