current location:Home > Technical Articles > Java > JavaBase
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How to determine whether a string is an int in java
- The method of judging whether a string is "int" in "java" is: first judge the length of the string that needs to be judged. If the length of the string is not 0, then use the "charAt" method to judge whether the specified index character in the string is "int", finally use loop judgment.
- JavaBase 5578 2019-11-28 09:59:12
-
- java error: symbol not found
- The "symbol not found" error reported in Java is generally because the corresponding class is not introduced in the code. This article takes the Arrays method as an example to introduce the reasons and solutions for the error "symbol not found" when the Arrays class is not introduced.
- JavaBase 30280 2019-11-28 09:57:06
-
- Java error: Reasons and solutions for main class not found or unable to be loaded
- Reason for the error: This problem often occurs because the java source file contains the package name. Solution: 1. Delete the package name from the source file (not recommended). 2. Create a file path structure under code that is the same as the package name.
- JavaBase 64469 2019-11-28 09:45:01
-
- How to determine whether a string consists of characters in java
- The method to determine whether a string is composed of characters in "java" is: first define a regular expression for determination, for example: "^[a-zA-Z]*", and then by calling the "matches" method, you will need Just match the determined string with the defined regular expression.
- JavaBase 2607 2019-11-28 09:44:41
-
- Java custom error page implementation method
- How to specify an error page in java: customize the error page and call the customized page in web.xml. When the service throws a 404 or 500 exception, the servlet service will look in web.xml to find out whether error-page and error-code are set to call a custom error page.
- JavaBase 2781 2019-11-28 09:35:26
-
- How to determine whether char is a space in java
- The method to determine whether "char" is a space in "java" is: first save the string to be determined into a character array by calling the "toCharArray" method, and then use the "for" loop to determine the length of the character array, and judge by the length to determine whether "char" is a space.
- JavaBase 7490 2019-11-28 09:22:39
-
- What does this in java mean?
- This in java represents the class instance itself. Usage of this keyword: 1. This keyword can be used to reference instance variables of the current class. 2. You can use the this keyword to call methods of the current class. 3. The this() constructor can be used to call the constructor of the current class.
- JavaBase 11788 2019-11-28 09:20:41
-
- Detailed explanation of JAVA exceptions and exception handling
- An exception is something different from the norm, something different from normal, something wrong. In Java, situations that block the current method or scope are called exceptions. This article provides you with a detailed introduction to exceptions and exception handling methods in Java.
- JavaBase 2364 2019-11-27 17:39:20
-
- What are the commonly used methods in java arrays
- Commonly used methods in java arrays are: 1. binarySearch method; 2. sort method; 3. copyOf and copyOFRange methods; 4. arraycopy method. This article is recommended by the Java Quick Start column. Everyone is welcome to communicate and learn together.
- JavaBase 3503 2019-11-27 17:19:53
-
- How to implement recursive arrangement in java
- This article is recommended by the "Zero Basic Introduction to Java" column. Everyone is welcome to learn and communicate together! If recursion in Java is understood from the perspective of data structure, it is actually a stack. The following example clearly demonstrates the recursive arrangement process.
- JavaBase 2328 2019-11-27 17:04:02
-
- Analysis on == and equals in java
- This article is recommended by the Java Programming Introduction column, I hope it can help everyone understand it better. When "==" is used to compare basic data types, the comparison is whether the contents are equal. When comparing reference data types, the comparison is whether the memory addresses are equal.
- JavaBase 2072 2019-11-27 16:21:07
-
- Detailed explanation of the usage of enum (enumeration) in java
- This article introduces the usage of enum in Java from the java introductory column. I hope it can help students in need. Usage of enum: Usage 1, constant; Usage 2, switch; Usage 3, add new methods to the enumeration; Usage 4, override the enumeration method.
- JavaBase 2953 2019-11-27 15:49:34
-
- Detailed explanation of java class loader ClassLoader
- A class loader is an object used to load classes, and ClassLoader is an abstract class. If we are given the binary name of a class, the class loader should try to locate or generate the data that makes up the defining class. A typical strategy is to convert a given binary name into a file name, and then read the class corresponding to the file name from the file system.
- JavaBase 2514 2019-11-27 15:35:50
-
- LRU cache implementation in java
- LRU cache caches a certain amount of data and deletes some expired data when it exceeds a set threshold. This article introduces us to the implementation of LRU cache in Java in detail, and provides us with some help when learning the Java language.
- JavaBase 2594 2019-11-27 14:43:13
-
- How to calculate the least common multiple in java
- This article is written by the Java Development Introduction column to introduce how to calculate the least common multiple in Java. I hope it can help you. To calculate the least common multiple, you need to know: the least common multiple of two adjacent non-zero natural numbers is their product; the least common multiple of two adjacent odd numbers is their product.
- JavaBase 6255 2019-11-27 14:39:49