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 Operations Excel Tool class sharing

importjava.io.bytearrayoutputstream;importjava.io.ioexception;importjava.io.outputstream; Importjava.text.decimalformat;importjava.text.simpledateformat;importjava.util.date;import java.util.HashMap;importorg.apache.poi.hssf.usermodel.HSSFCell;import org.apache.poi.hssf.usermodel.hssfdateutil;importorg.apache.poi.hssf.usermodel.hssfformulaevaluator; Importorg.apache.poi.hssf.usermodel.hssfrow;importorg.apache.poi.hssf.usermodel.hssfsheet;import org.apache.poi.hssf.usermodel.HSSFWorkbook;importor

Java-jdbc.mysql Tool Class read local file configuration

*SYSTEM.OUT.PRINTLN ("Data connection Failed"); $ e.printstacktrace ();Panax Notoginseng } - } the + Private Static voidinitconfig () { AInputStream inf = jdbcutils.class. getClassLoader (). getResourceAsStream ("Database.propertties"); theProperties Properties =NewProperties (); + Try { - Properties.load (INF); $Classforname = Properties.getproperty ("Driverclass"); $Sqlurl = properties.getproperty ("url"); -SqlUser = Properties.getproperty ("username

Java tool class for the list collection to sort by one or more attributes of a collection element object

Tag:lengthlongampmax Access .texttracefinalnull Import Java.lang.reflect.field;import Java.text.numberformat;import Java.util.collections;import Java.util.comparator;import Java.util.date;import Java.util.list;public class Listutils {/** * The elements of the List are sorted by multiple property names, * The properties of the list element can be numbers (byte, short, int, long, float, double, etc., support positive, negative, 0), Char, Strin

Exchanger of the Java Synchronization tool class

= (string) exchanger.exchange (data1); SYSTEM.OUT.PRINTLN ("Thread" + thread.currentthread (). GetName () + "data returned as" + Data2);} catch (Exception e) {}}}); Service.execute (new Runnable () {public void run () {try {String data1 = "Ljy"; SYSTEM.OUT.PRINTLN ("Thread" + thread.currentthread (). GetName () + "data" + Data1 + "swap out"); Thread.Sleep ((Long) (Math.random () *10000)); String data2 = (string) exchanger.exchange (data1); SYSTEM.OUT.PRINTLN ("Thread" + thread.currentthread ().

Java gets the current time, first and last day of the week, first and last day of the month, tool class

pattern) {//Gets the first day of the current month Calendar currentdate = Calendar.getinstance (); Currentdate.add (calendar.month, 0); CurrentdatE.set (calendar.day_of_month,1);//set to number 1th, the current date is the first day of the month if (pattern = = NULL | | pattern.equals ("")) {pattern = "yyyy-mm-dd";} SimpleDateFormat format = new SimpleDateFormat (pattern); return Format.format (Currentdate.gettime ());} /** * @description: Gets the last day of the current month * @param patter

Java randomly generated string tool class

*@paramtype * @type * */ Public StaticString Getrandom (intnum, type type) {ArrayListNewArraylist(); StringBuffer Code=NewStringBuffer (); Switch(type) { CaseLETTER:temp.addAll (arrays.aslist (lowercase)); Break; CaseCAPITAL:temp.addAll (arrays.aslist (capital)); Break; CaseNUMBER:temp.addAll (arrays.aslist (number)); Break; CaseLETTER_CAPITAL:temp.addAll (arrays.aslist (lowercase)); Temp.addall (arrays.aslist (capital)); Break; CaseLETTER_NUMBER:temp.addAll (arrays.aslis

Conversion of the tool class time format for Java date operations

Java.sql.Timestamp (Dateformt.gettime ()); return dateTime;return hehe;}/*** @param contains yyyy-mm-dd ' T ' hh:mm:ss. Time conversion in SSS format.* @return*/public static string Gettformatstring (String tdate) {SimpleDateFormat format1 = new SimpleDateFormat ("Yyyy-mm-dd ' T ' HH:mm:ss. SSS ");String str = "";try {Java.util.Date Date = Format1.parse (tdate);SimpleDateFormat format2 = new SimpleDateFormat ("Yyyy-mm-dd HH:mm:ss");str = Format2.format (date);} catch (ParseException e) {E.prin

Arrayutil of Java Common tool class

FilterArrayUtil.filtermethod is used to edit an existing array element, only for a generic array operation, and the original type array is not provided. The editor interface in the method is used to return the edited value of each element, and returns NULL when this element is discarded.Example: Filtering an array, preserving only an even number integer[] a = {1, 2,3,4,5, 6};integer[] filter = Arrayutil.filter (A, new Editor @Override public Integer edit (Integer t) {return (t% 2 = 0)? T: null}}

Java System Properties Tool Class __java

Java System Properties Tool class Altogether about 540 lines of code//Total 108 public methods import Utils.print.Print; Import java.util.Properties; /** * @author Created by Tan Jian on 2018/4/16 0016. Monday. 15:36. *©all Rights Reserved. */public class Systempropertieutils {public static String getsuncpuisalist

java--user-activated Mail tool class

We often encounter in the site or software to register a new user to our registered mailbox to send an activation email, and then we go to the mailbox Click Activate Connection after our user name to log in, the process is when we registered successfully after the database has been credited to the user's information, but the user status is not available, Therefore, the user name is not used properly at this time. Therefore, the system needs to send an activation email to our registered mailbox,

HTTP download Tool class written in Java with download progress callback

,NULL, ex); Downloadstarted=false; } }); }}.start (); } } }); Test2button.addmouselistener (NewMouseadapter () {Private Booleandownloadstarted; @Override Public voidmouseclicked (MouseEvent e) {if(!downloadstarted) {downloadstarted=true; NewThread () {@Override Public voidrun () {String URL= "Http://download.microsoft.com/download/A/C/9/AC924EA1-9F39-4DFD-99DF-2C1DEB922174/EIE11/WOL/EIE11_ZH-CN_WOL_WIN764.E

Java Read Property Profile tool class

1 Importjava.io.IOException;2 ImportJava.io.InputStream;3 Importjava.util.Properties;4 /**5 * 6 * Class: Proutil 7 * Description: Attribute profile Read class 8 * Author: poseidon9 * Version: 1.0Ten * Time: 2015-7-17 a.m. 09:20:17 One */ A Public classProutil { - Public StaticProperties Propertie =NULL; - Static { thePropertie =NewProperties (); -InputStream InputStream = Proutil.class. getResou

Java Collection (Tool class collections)

Reverseorder (comparatorReturns a comparer that forcibly reverses the order of the specified comparer.**/Import java.util.Collections;Import Java.util.Comparator;Import Java.util.Iterator;Import Java.util.TreeSet;public class CollectionsDemo2 {public static void Main (String args[]){Orderdemo ();}public static void Orderdemo (){Call the Reverseorder method with parameters, first sort the collection by its parameter comparer, and then force the collec

Java8--io Tool Class (Java Madness Handout 3 Review notes)

"); if(File.endswith ("Learnio.java") ) {System. out. println ("****** Locate the target file learnio.java******"); returnFilevisitresult.terminate;//Stop when you find it. } returnFilevisitresult.continue;//I can't find it. } }); ; }Monitor file changes with WatchservicePrivate Static voidWatchservicetest () throws IOException, interruptedexception {//TODO auto-generated Method StubWatchservice Watchservice =Filesystems.getdefault (). Newwatc

The first season of Java MD5 Encryption tool class for files and strings

= Md.digest (); for (byte b:digest) {//to convert each byte to 16 binary int d = b 0xff;//0x000000ffstring He xstring = integer.tohexstring (d); if (hexstring.length () = = 1) {//bytes high 4 bits is 0hexString = "0" + hexstring;} hexstring = Hexstring.touppercase (); Mess.append (hexstring);//the 2-bit hexadecimal number corresponding to each byte as string concatenation}} catch (NosuchalgoritHmexception e) {//Todo auto-generated catch Blocke.printstacktrace ();} catch (FileNotFoundException

Introduction to the Java Util Arrays tool class

: Arrays.binarysearch (Array1, 3):" + "\ n" +arrays.binarysearch (Array1, 3));// Returns a negative number if it does not exist System.out.println ("element 9 in Arrint position: Arrays.binarysearch (Arrint, 9):" + "\ n" +arrays.binarysearch (Arrint, 9 );//Convert to String System.out.println ("Convert to string"); String str = arrays.tostring (array1); System.out.println (str);D og arrdog[] = new Dog[4];arrdog[0] = new Dog (3); arrdog[1] = new Dog (1); arrdog[2] = new Dog (0); arr DOG[3] = new

Java tool class to get the distance between latitude and longitude

publicclassgeoutil{/** * returns a rectangular range based on latitude and longitude **@ paramlng* Longitude * @param lat* Latitude * @param distance* distance (in meters) * @return [lng1,lat1,lng2,lat2] lower-left corner of the rectangle ( LNG1,LAT1) and upper right Corner (LNG2,LAT2) */publicstatic double[]getrectangle (doublelng,doublelat,longdistance) { floatdelta=111000;if (lng!=0lat!=0) { doublelng1=lng-distance / math.abs (Math.Cos (Math.toradians (LAT)) *delta); doublelng2=lng+distanc

Java Collection Framework tool class collections, operation of the collection

1Import java.util.*; Public classaslist{ Public Static voidMain (String args[]) {//int arr[] = {1,2,3,4,45}; //list//List.add ("QQ"); Cannot be added here, because the length of the array is fixed//integer[] nums = {2,4,5,2}; //list//if the element in the array is an object, then the elements in the array go directly to the elements in the collection when they become collections//if the element in the array is the base data type, the array will be present as an element in the collection.String a

Java converting files to UTF8 tool class

Package Hivetest;import java.io.bufferedreader;import java.io.datainputstream;import java.io.FileInputStream; Import Java.io.fileoutputstream;import Java.io.ioexception;import Java.io.inputstreamreader;import Java.io.outputstreamwriter;import Java.io.Writer; Public classGBKTransferUTF8 {Private Static voidtransferfile (String srcfilename, String destfilename) throws IOException {string Line_separator= System.getproperty ("Line.separator"); FileInputStream FIS=NewFileInputStream (srcfilename); St

Open Source Java Time Tool class Joda-time experience

A.M. 00 sec. CST French:samedi Japanese: Earth Day Korean: August 1, 2017 Tuesday 12:00 A.M. 00 sec CST French:mardi Japanese: Fire day Korean: September 1, 2017 Friday 12:00 A.M. 00 sec CST French:vendredi Japanese: Kim Buzhi Korean: October 1, 2017 Sunday 12:00 A.M. 00 sec. cst French:dimanche DayLanguage: Day Korean: November 1, 2017 Wednesday 12:00 A.M. 00 sec CST French:mercredi Japanese: Wednesday Korean: December 1, 2017 Friday 12:00 A.M. 00 sec CST French:vendredi Japane

Total Pages: 15 1 .... 11 12 13 14 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.

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.