search
HomeJavajavaTutorialLatest compilation_Learn java, you can use these common tools

How can I learn Java without tools? This article introduces the commonly used tools in Java. I have compiled them. It includes a brief introduction to some commands to give you some reference. If you want to get started with Java, these tools will be used sooner or later. Let’s take a look and familiarize yourself. The system has compiled Tools, you can know your learning direction at a glance. Let’s go to the tool directory first.

apache php mysql

begin!

Directory

One. org.apache.commons.io.IOUtils

two. org.apache.commons.io.FileUtils

three. org.apache.commons.lang.StringUtils

four . org.apache.http.util.EntityUtils

5. org.apache.commons.lang3.StringUtils

6. org.apache.commons.io.FilenameUtils

7. org.springframework.util.StringUtils

8. org.apache.commons.lang.ArrayUtils

9. org.apache.commons.lang.StringEscapeUtils / org.apache.commons. lang3.StringEscapeUtils

ten. org.apache.http.client.utils.URLEncodedUtils

eleven. org.apache.commons.codec.digest.DigestUtils

twelve . org.apache.commons.collections.CollectionUtils

13. org.apache.commons.lang3.ArrayUtils

14. org.apache.commons.beanutils.PropertyUtils

Fifteen. org.apache.commons.beanutils.BeanUtils

1. org.apache.commons.io.IOUtils

  1. ##closeQuietly: Close an IO stream, socket, or selector without throwing an exception, usually placed in the finally block

  2. toString: Convert IO stream, Uri, byte[] to String

  3. copy: Copy IO stream data, write from input stream to output stream, maximum support 2GB

  4. toByteArray: Get byte[] from input stream, URI

  5. write: Write bytes, characters, etc. to the output stream

  6. toInputStream: Convert characters to the input stream

  7. readLines: Read multiple lines of data from the input stream and return List

  8. copyLarge: Same as copy, supports copying of data above 2GB

  9. lineIterator: Return an iterator from the input stream, read all data according to the amount of data required by the parameters, if the data is not enough, fail

2. org.apache.commons .io.FileUtils

  1. deleteDirectory: Delete the folder

  2. readFileToString: Read the file content in character form

  3. deleteQueitly: delete a file or folder without throwing an exception

  4. copyFile: copy the file

  5. writeStringToFile: write the characters to the target file. If the file does not exist, create it

  6. forceMkdir: Force the creation of the folder. If the parent directory of the folder does not exist, create the parent

  7. write: write characters to the specified file

  8. listFiles: list the files in a directory (according to the filter)

  9. copyDirectory: Copy the folder

  10. forceDelete: Force delete the file

3. org.apache.commons.lang.StringUtils

  1. isBlank: Whether the string is empty (judged after trimming)

  2. isEmpty: Whether the string is empty (judged without trimming)

  3. equals: Whether the strings are equal

  4. join: merge the arrays into a single string, the delimiter can be passed

  5. split: Split the string

  6. EMPTY: Return the empty string

  7. trimToNull: If the trim is an empty string, it will be converted to null

  8. replace: Replace string

4. org.apache.http.util.EntityUtils

  1. toString: Convert Entity to a string

  2. consume: Ensure that all contents in Entity are consumed. You can see that the content of Entity is consumed again in the source code. If the user does not consume it, it will be consumed when calling Entity

  3. toByteArray: Convert Entity to byte stream

  4. consumeQuietly: Same as consume, but does not throw an exception

  5. getContentCharset: Get the encoding of the content

5. org.apache.commons.lang3.StringUtils

  1. isBlank: Whether the string is empty (judged after trimming)

  2. isEmpty: Whether the string is empty (without trimming and judging)

  3. equals: whether the strings are equal

  4. #join: merge the arrays into a single string, Passable delimiter

  5. split: Split the string

  6. EMPTY: Return the empty string

  7. replace: Replace string

  8. capitalize: Capitalize the first character

  9. ## 6. org.apache.commons.io.FilenameUtils

    getExtension: Returns the file extension name
  1. getBaseName: Returns the file name, excluding the suffix

  2. getName: Returns the full name of the file

  3. concat : Combine file paths according to the command line style (see method comments for details)

  4. removeExtension: Remove the suffix name

  5. normalize: Normalize the path

  6. wildcardMatch: Match wildcard characters

  7. seperatorToUnix: Change the path separator to the unix system format, that is, /

  8. getFullPath: Get the file path, excluding the file name

  9. isExtension: Check whether the file suffix name is one of the incoming parameters (List)

7. org.springframework.util.StringUtils

  1. hasText: Check whether the string contains text

  2. ##hasLength : Check whether the length of the string is greater than 0

  3. isEmpty: Check whether the string is empty (if passed in as an object, determine whether the object is null)

  4. commaDelimitedStringToArray: Convert comma-delimited String to array

  5. collectionToDelimitedString: Convert collection to CSV format string

  6. replace Replacement characters String

  7. delimitedListToStringArray: equivalent to split

  8. uncapitalize: lowercase first letter

  9. collectionToDelimitedCommaString: put Convert the collection to a CSV format string

  10. tokenizeToStringArray: basically the same as split, but can automatically remove blank words

8. org.apache .commons.lang.ArrayUtils

  1. contains: Whether it contains a certain string

  2. addAll: Add the entire array

  3. clone: ​​clone an array

  4. isEmpty: whether the array is empty

  5. add: add elements to the array

  6. subarray: Intercept array

  7. indexOf: Find the subscript of an element

  8. isEquals: Compare arrays for equality

  9. toObject: Convert the basic type data array to the corresponding Object array

  10. ##9. org.apache.commons.lang.StringEscapeUtils / org.apache .commons.lang3.StringEscapeUtils

    unescapeHtml4: escape html
  1. escapeHtml4: anti-escape html
  2. escapeXml: Escape xml
  3. unescapeXml: Unescape xml
  4. ##escapeJava: Escape unicode encoding
  5. escapeEcmaScript: Escape EcmaScript characters
  6. unescapeJava: Escape unicode encoding
  7. escapeJson: Escape json characters
  8. escapeXml10: Escape Xml10
  9. (It is recommended to use the method in the commons-text package. )
10. org.apache.http.client.utils.URLEncodedUtils

format: Format parameters, return an HTTP POST or HTTP PUT available application/x- www-form-urlencoded string
  1. parse: Convert String or URI to List
  2. ##11. org.apache .commons.codec.digest.DigestUtils

md5Hex:MD5 encryption, return 32-bit string

  1. sha1Hex:SHA-1 encryption

  2. sha256Hex:SHA-256 encryption

  3. sha512Hex:SHA-512 encryption

  4. md5:MD5 encryption , returns a 16-bit string

  5. Twelve. org.apache.commons.collections.CollectionUtils

isEmpty: Whether it is empty

  1. select: Filter collection elements according to conditions

  2. transform: Process collection elements according to the specified method, similar to List's map()

  3. filter: filter elements, filter() of Reiser List

  4. find: basically the same as select

  5. collect: and transform is almost the same, but returns a new array

  6. forAllDo: Call the specified method of each element

  7. isEqualCollection: Determine whether the two collections are consistent

  8. Thirteen. org.apache.commons.lang3.ArrayUtils

##contains: Whether to contain a certain string

  1. addAll: Add the entire array

  2. clone: ​​Clone an array

  3. isEmpty: Whether the array is empty

  4. add: Add elements to the array

  5. subarray: Intercept the array

  6. indexOf: Find the subscript of an element

  7. isEquals: Compares whether the arrays are equal

  8. toObject: Converts the basic type data array to the corresponding Object array

  9. Fourteen. org.apache.commons.beanutils.PropertyUtils

  10. ##getProperty: Get the object property value

    setProperty: Set the object property Value
  1. getPropertyDiscriptor: Get the property descriptor
  2. isReadable: Check whether the property is accessible
  3. copyProperties: Copy property values ​​from one object to another
  4. getPropertyDiscriptors: Get all property descriptors
  5. isWriteable: Check whether the property is available Write
  6. getPropertyType: Get the object property type

15. org.apache.commons.beanutils.BeanUtils

  1. copyPeoperties: Copy attribute values ​​from one object to another (note the import package Error, public static void copyProperties(Object dest, Object orig)Copy orig to dest)

  2. getProperty: Get the object property value

  3. setProperty : Set the object attribute value

  4. populate: Copy the attribute according to the Map

  5. copyPeoperty: Copy a single value, from one object to another object

  6. cloneBean: Clone bean instance

(copyPeoperties (Object source, Object target) in org.springframework.beans.BeanUtils) copies the source to b)

end:

This is the end of my article sharing. Thank you everyone for browsing and if you have any ideas or differences. The exchange of opinions is welcome.

Related articles:

What are the Java development tools? Recommended 16 java development tools

Introduction to common development tools for beginners

Related videos:

JAVA Beginner Getting Started Video Tutorial

The above is the detailed content of Latest compilation_Learn java, you can use these common tools. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What are some strategies for mitigating platform-specific issues in Java applications?What are some strategies for mitigating platform-specific issues in Java applications?May 01, 2025 am 12:20 AM

How does Java alleviate platform-specific problems? Java implements platform-independent through JVM and standard libraries. 1) Use bytecode and JVM to abstract the operating system differences; 2) The standard library provides cross-platform APIs, such as Paths class processing file paths, and Charset class processing character encoding; 3) Use configuration files and multi-platform testing in actual projects for optimization and debugging.

What is the relationship between Java's platform independence and microservices architecture?What is the relationship between Java's platform independence and microservices architecture?May 01, 2025 am 12:16 AM

Java'splatformindependenceenhancesmicroservicesarchitecturebyofferingdeploymentflexibility,consistency,scalability,andportability.1)DeploymentflexibilityallowsmicroservicestorunonanyplatformwithaJVM.2)Consistencyacrossservicessimplifiesdevelopmentand

How does GraalVM relate to Java's platform independence goals?How does GraalVM relate to Java's platform independence goals?May 01, 2025 am 12:14 AM

GraalVM enhances Java's platform independence in three ways: 1. Cross-language interoperability, allowing Java to seamlessly interoperate with other languages; 2. Independent runtime environment, compile Java programs into local executable files through GraalVMNativeImage; 3. Performance optimization, Graal compiler generates efficient machine code to improve the performance and consistency of Java programs.

How do you test Java applications for platform compatibility?How do you test Java applications for platform compatibility?May 01, 2025 am 12:09 AM

ToeffectivelytestJavaapplicationsforplatformcompatibility,followthesesteps:1)SetupautomatedtestingacrossmultipleplatformsusingCItoolslikeJenkinsorGitHubActions.2)ConductmanualtestingonrealhardwaretocatchissuesnotfoundinCIenvironments.3)Checkcross-pla

What is the role of the Java compiler (javac) in achieving platform independence?What is the role of the Java compiler (javac) in achieving platform independence?May 01, 2025 am 12:06 AM

The Java compiler realizes Java's platform independence by converting source code into platform-independent bytecode, allowing Java programs to run on any operating system with JVM installed.

What are the advantages of using bytecode over native code for platform independence?What are the advantages of using bytecode over native code for platform independence?Apr 30, 2025 am 12:24 AM

Bytecodeachievesplatformindependencebybeingexecutedbyavirtualmachine(VM),allowingcodetorunonanyplatformwiththeappropriateVM.Forexample,JavabytecodecanrunonanydevicewithaJVM,enabling"writeonce,runanywhere"functionality.Whilebytecodeoffersenh

Is Java truly 100% platform-independent? Why or why not?Is Java truly 100% platform-independent? Why or why not?Apr 30, 2025 am 12:18 AM

Java cannot achieve 100% platform independence, but its platform independence is implemented through JVM and bytecode to ensure that the code runs on different platforms. Specific implementations include: 1. Compilation into bytecode; 2. Interpretation and execution of JVM; 3. Consistency of the standard library. However, JVM implementation differences, operating system and hardware differences, and compatibility of third-party libraries may affect its platform independence.

How does Java's platform independence support code maintainability?How does Java's platform independence support code maintainability?Apr 30, 2025 am 12:15 AM

Java realizes platform independence through "write once, run everywhere" and improves code maintainability: 1. High code reuse and reduces duplicate development; 2. Low maintenance cost, only one modification is required; 3. High team collaboration efficiency is high, convenient for knowledge sharing.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),