current location:Home > Technical Articles > Java > JavaBase
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- Characteristics and application scenarios of java builder pattern
- Definition of Builder pattern: It refers to separating the construction of a complex object from its representation so that the same construction process can create different representations. This design pattern is called the Builder pattern. Conducive to system expansion. The client does not need to know the details of the internal composition of the product, which facilitates control of detailed risks.
- JavaBase 4099 2019-11-26 15:43:41
-
- How to initialize the ArrayList collection in java
- This article introduces the initialization method of ArrayList collection from the java development introductory column. I hope it can help you. There are three ways to initialize the ArrayList collection: 1. Construction without parameters; 2. Construction with a specified initialization length; 3. Construction with a Collection object.
- JavaBase 2660 2019-11-26 15:13:01
-
- Detailed explanation of java thread pool
- The thread pool is a pool that manages threads, which can reduce the resource consumption caused by creating and destroying threads, because a thread is actually an object. To create an object, you need to go through the class loading process, and to destroy an object, you need to go through the GC garbage collection process. It requires resource overhead.
- JavaBase 3376 2019-11-26 15:44:48
-
- Running the java class file from the command line prompts that the main class cannot be found or cannot be loaded.
- Below, the Java language introduction column will introduce how to solve the problem of not being able to find or load the main class. I hope it will be helpful to you. When such problems occur, generally we only need to reset the classpath value.
- JavaBase 2913 2019-11-26 15:03:46
-
- Code explains java's singleton pattern
- The singleton pattern can be said to be one of the most commonly used design patterns. Its main function is to ensure that a class has only one instance, and to provide a global access point to access it, strictly controlling user access methods.
- JavaBase 1888 2019-11-26 15:45:37
-
- One trick to complete IDEA automatic import (import)
- If you are using a class that has not been imported (imported), or its static method or static field, IDEA will give corresponding suggestions. Just press ⌥ (option) and press Enter to accept the suggestions. Open IDEA's preferences.
- JavaBase 4250 2019-11-26 15:46:33
-
- How to use regular expressions to filter special characters in java
- This article introduces how to use regular expressions to filter special characters from the java language introduction column. I hope it can help you! The following code shows you the complete process of using regular expressions to filter special characters. During the filtering process, legal characters are generally added to the buffer.
- JavaBase 3592 2019-11-26 12:51:41
-
- Solution to zip compression garbled characters in java (with code)
- Solution to the garbled zip compression in Java: 1. Modify the source code of sun to solve the problem. 2. Use the open source class libraries org.apache.tools.zip.ZipOutputStream and org.apache.tools.zip.ZipEntry to solve the problem.
- JavaBase 2682 2019-12-06 16:51:50
-
- Solution to decompression garbled code in java
- Solution to decompression garbled code in java: 1. Use ant to solve the problem of zip decompression garbled code: use ZipFile(unZipFileName, "GB18030"); statement to set the encoding format. 2. Modify the encoding method of ZipInputStream for file names to solve the problem.
- JavaBase 2698 2019-12-06 16:51:11
-
- Java method to determine whether a character is a Chinese character
- How to determine whether a character is a Chinese character in Java: first define a regular expression "\u4e00-\u9fa5", and then use the matcher() method to match this regular expression to determine whether the character is a Chinese character.
- JavaBase 2761 2019-12-06 16:48:52
-
- Solution to garbled request in java
- Solutions to garbled requests in java: 1. Get request: Find the first connector in the tomcat configuration file server.xml and add the URIEncoding=UTF-8 attribute. 2. Post request: Set the encoding character set before obtaining the request parameters.
- JavaBase 2364 2019-12-06 16:48:11
-
- How to call functions (methods) in java
- Java calls functions (methods): 1. Non-static methods: Called through objects (object name. method ()). 2. Static method: Called by calling the class name (class name. method ()). 3. Intra-method calls: Static methods can be called directly. Calls to non-static methods must be called through objects.
- JavaBase 28153 2019-12-06 16:47:12
-
- Java method to determine whether a specific value is in an array
- How to determine whether a specific value is in the array in java: 1. First convert the array into a list collection, and then use the contains() method to determine whether the specific value is in the array. 2. Use a loop to traverse the array to determine whether a specific value is in the array.
- JavaBase 3508 2019-11-26 10:00:18
-
- Solution to Java console output garbled code
- Solution to the garbled output of the java console: 1. Eclipse console: Select UTF-8 encoding in the Console Encoding tab of the Common tab on the right side of the Run Configuration option in the menu. 2. cmd console: execute the chcp65001 command.
- JavaBase 4929 2019-11-26 09:51:08
-
- Java interface garbled solution
- Solution to Java interface garbled code: It needs to be modified in the tomcat configuration file (/conf/server.xml): add encoding setting URIEncoding="utf-8" after redirectPort="8443" to solve the problem.
- JavaBase 2710 2019-11-26 09:37:26