current location:Home > Technical Articles > Java > JavaBase

  • Characteristics and application scenarios of java builder pattern
    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 4119 2019-11-26 15:43:41
  • How to initialize the ArrayList collection in java
    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 2677 2019-11-26 15:13:01
  • Detailed explanation of java thread pool
    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 3397 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.
    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 2933 2019-11-26 15:03:46
  • Code explains java's singleton pattern
    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 1912 2019-11-26 15:45:37
  • One trick to complete IDEA automatic import (import)
    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 4273 2019-11-26 15:46:33
  • How to use regular expressions to filter special characters in java
    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 3614 2019-11-26 12:51:41
  • Solution to zip compression garbled characters in java (with code)
    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 2708 2019-12-06 16:51:50
  • Solution to decompression garbled code in java
    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 2719 2019-12-06 16:51:11
  • Java method to determine whether a character is a Chinese character
    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 2785 2019-12-06 16:48:52
  • Solution to garbled request in java
    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 2380 2019-12-06 16:48:11
  • How to call functions (methods) in java
    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 28184 2019-12-06 16:47:12
  • Java method to determine whether a specific value is in an array
    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 3523 2019-11-26 10:00:18
  • Solution to Java console output garbled code
    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 4956 2019-11-26 09:51:08
  • Java interface garbled solution
    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 2729 2019-11-26 09:37:26

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28