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:
-
- 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 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
- 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
- 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
- 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?
- "=" 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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