current location:Home > Technical Articles > Java > JavaBase

  • Java determines whether a string is a number
    Java determines whether a string is a number
    How to determine whether a string is a number in Java: 1. Loop through the string, and then use isDigit() to determine whether the characters in the string are numbers one by one. 2. Use regular expressions to determine whether a string is a number. 3. Determine whether it is a number through the ASCII code of the number.
    JavaBase 2064 2019-12-02 10:41:48
  • Java error The system cannot find the specified file Causes and solutions
    Java error The system cannot find the specified file Causes and solutions
    Java error The reason why the system cannot find the specified file: It may be caused by the incorrect file name or file extension set in Java. Solution: Check whether the file name is correct or check whether the file suffix is ​​correct.
    JavaBase 4882 2019-12-02 10:28:59
  • Introduction to solutions to Java compilation garbled code
    Introduction to solutions to Java compilation garbled code
    Solution to Java compilation garbled code: 1. Use the javac -encoding utf-8 command instead of javac when compiling. 2. Add a new JAVA_TOOL_OPTIONS to the system variables in the computer environment variables with the value "-Dfile.encoding=UTF-8".
    JavaBase 3045 2019-12-02 10:14:21
  • Java import new project garbled solution
    Java import new project garbled solution
    Solution to garbled characters when java imports new projects: 1. Right-click properties on the project, select Resource, and change the Text file encoding settings. 2. In the IDE, find Text file encoding in Window and set the encoding format.
    JavaBase 2683 2019-12-02 10:02:20
  • Solutions to garbled characters when reading java files
    Solutions to garbled characters when reading java files
    Solution to garbled characters when reading java files: first set the encoding format of the text file to be read to UTF-8, and then use the InputStreamReader class to read the file when java reads the file. This class can specify the character set when reading the file. , just specify the character set as UTF-8.
    JavaBase 5670 2019-12-02 09:47:49
  • What does '=' in java mean?
    What does '=' in java mean?
    "=" in Java is the assignment operator, which is used to assign the return value of the expression on the right side of the operator to the variable on the left or a final-modified variable. The left side of "=" is a variable, or a final-modified variable, and the right side can be any expression (the type of the returned value must be compatible with the one on the left).
    JavaBase 8876 2019-12-02 09:37:01
  • How to make fonts display underline in java
    How to make fonts display underline in java
    You can use the TextAttribute class in Java to set the font to display underline. Use the UNDERLINE_ON value in this class to set the standard underline. The TextAttribute instance is used as an attribute key and can be used to identify attributes in the class of text processing attributes.
    JavaBase 3981 2019-12-02 09:27:21
  • Java reads json data and solves Chinese garbled characters
    Java reads json data and solves Chinese garbled characters
    Solution to Chinese garbled characters when reading json data in java: Use InputStreamReader when reading json data in java to use UTF-8 encoding to solve the garbled problem when the data is transferred from a byte stream to a character stream.
    JavaBase 4524 2019-12-02 09:14:23
  • Detailed graphic and text explanation of java constant pool
    Detailed graphic and text explanation of java constant pool
    The constant pool in Java is actually divided into two forms: static constant pool and runtime constant pool. The static constant pool is the constant pool in the *.class file. The runtime constant pool means that after the jvm virtual machine completes the class loading operation, it loads the constant pool in the class file into the memory and saves it in the method area. .
    JavaBase 1980 2019-11-30 16:36:54
  • Understand the concept of GC in JAVA in 3 minutes
    Understand the concept of GC in JAVA in 3 minutes
    GC (Garbage Collection) is an inevitable hurdle in the process of learning JVM. This article will introduce the basic concepts of gc in java. I hope it will be helpful to students learning java! In the JVM, the GC plays the role of a scavenger. It automatically collects garbage and determines memory allocation.
    JavaBase 1651 2019-11-30 16:36:32
  • Detailed explanation of Java memory model with pictures and text
    Detailed explanation of Java memory model with pictures and text
    The main goal of the Java memory model is to define the access rules for each variable in the program, that is, the low-level details of storing variables into memory and retrieving variables from memory in the virtual machine. The Java memory model stipulates that all variables are stored in main memory, and each thread has its own working memory.
    JavaBase 2311 2019-11-30 16:27:26
  • Java implements dynamic initialization of arrays
    Java implements dynamic initialization of arrays
    This article introduces the method of dynamic initialization of arrays from the java introductory learning column. I hope it can help you. Dynamic initialization refers to specifying only the length of the array and giving the initialization value by the system. The format is: "data type [] array name = new data type [array length]".
    JavaBase 3109 2019-11-30 16:24:29
  • Three traversal methods of java collection ArrayList
    Three traversal methods of java collection ArrayList
    This article introduces the three traversal methods of ArrayList from the java language introduction column. I hope it can help you. The three traversal methods of ArrayList are: 1. iterator traversal; 2. index value traversal; 3. for loop traversal.
    JavaBase 3201 2019-11-30 15:56:54
  • Summary of usage of reference types in java
    Summary of usage of reference types in java
    This article introduces the usage of reference types from the java introductory tutorial column. I hope it can help you. Usage 1: class as a member variable; Usage 2: interface as a member variable; Usage 3: interface as method parameter and return value type.
    JavaBase 1989 2019-11-30 15:31:43
  • Examples of how to handle exceptions in java
    Examples of how to handle exceptions in java
    This article introduces to you the various methods of handling exceptions in Java from the java introductory column. I hope it can help you. There are two main ways to handle exceptions in Java: one is "try catch" and the other is "throws".
    JavaBase 2360 2019-11-30 15:15:44

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!