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 method to determine if a file does not exist and then create it
- How to create a file in Java when it is judged that it does not exist: Use the file.exists() method to judge whether the file exists. If it does not exist, use the file.createNewFile() method to create a new empty file.
- JavaBase 8740 2019-12-14 10:07:24
-
- Java method to verify whether it is a number
- How to verify whether it is a number in java: 1. Use the isDigit() function to verify whether it is a number. 2. Use the regular expression "^[-\+]?[\d]*$" to determine whether it is a number. 3. Determine whether the character is a number by judging the ASCII code of the character.
- JavaBase 3535 2019-12-14 09:59:39
-
- How to install java
- Java installation method: 1. Download the JDK installation file and double-click it, and then install it according to the installation interface prompts. 2. Create and set the environment variables JAVA_HOME, CLASSPATH, and Path.
- JavaBase 17629 2019-12-14 09:49:51
-
- Java filters garbled characters (\u format garbled characters, unicode garbled characters)
- Java method to filter garbled characters: first define a regular expression that matches special characters such as illegal unicode encodings, use matcher() to match the content to be filtered, and then use the replaceAll() method to replace garbled characters with empty characters.
- JavaBase 3352 2019-12-14 09:30:22
-
- Methods to solve Chinese garbled characters in java
- Methods to solve Chinese garbled characters in Java: 1. For Chinese garbled POST requests, you can use "setCharacterEncoding" to set the encoding before obtaining the parameter value. 2. GET requests can be solved by transcoding the requested bytes.
- JavaBase 4062 2019-12-14 09:13:37
-
- How to write paging in java
- Java paging implementation method: Create a Page class, which contains the number of pages currently accessed and the number of record rows displayed on each page, and then calculates the total number of pages, the current number of pages, the starting position of the table record, and the total number of records through paging calculations , each page size and other data.
- JavaBase 2889 2019-12-13 15:45:24
-
- Several ways to get the current time in java
- This article introduces several ways to obtain the current time from the java development introductory column. I hope it can help you. There are generally three ways to obtain the current time: 1. [new Data] method; 2. [system] acquisition; 3. Use date class implementation.
- JavaBase 2569 2019-12-13 11:59:31
-
- Solution to garbled value transfer in java
- Solution to garbled value transfer in java: 1. Use String(userCode.getBytes("ISO-8859-1"), "UTF-8") to force transcode Chinese. 2. Add an encoding filter to the configuration web.xml file to prevent garbled characters when transferring Chinese values.
- JavaBase 2057 2019-12-12 16:33:18
-
- Java method to determine whether files are the same
- How to determine whether the files are the same in Java: 1. Calculate the MD5 or SHA-1 value of the file, and then determine whether the files are the same based on the MD5 or SHA-1 value. 2. Directly determine whether the files are the same based on whether the file length and content are the same.
- JavaBase 2696 2019-12-12 16:26:33
-
- Java implements counting the number of different characters or numbers in a string
- This article from the Java Language Introduction column demonstrates how to count the number of different characters or numbers in a string. I hope it can help you. The code shown in this article can be implemented to count the number of characters of each category in a string containing letters, numbers, punctuation marks or special symbols.
- JavaBase 3617 2019-12-12 12:00:18
-
- Solution to garbled code when using jar package in java
- Solution to garbled characters when using jar packages in java: 1. Set the encoding format of java files and Eclipse console to UTF-8 to solve the problem. 2. Just add encoding when quoting the jar package, such as "java -Dfile.encoding=utf-8 -jar demo.jar".
- JavaBase 5314 2019-12-12 10:13:21
-
- what is java web development
- Java Web is the sum of technologies that use Java technology to solve related web and Internet fields. The web consists of two parts: web server and web client. Java has many applications on the server side, such as Servlet, JSP and third-party frameworks, etc.
- JavaBase 5011 2019-12-12 10:05:43
-
- Solution to garbled Chinese output in java console
- Solution to the garbled Chinese output of the Java console: Just specify the encoding of the console as utf8. eclipse console: Modify in "Console Encoding" of the "Common" tab. cmd console: Use the "chcp 65001" command to change the encoding method.
- JavaBase 9521 2019-12-11 15:32:48
-
- Several ways to determine whether it is an integer in java
- How to determine whether it is an integer in Java: 1. Use the isDigit function to determine whether the characters in the string are digits one by one to determine whether they are integers. 2. Use the regular expression "^[-\\+]?[\\d]*$" to determine whether it is an integer. 3. Determine whether it is an integer through the digital ASCII code.
- JavaBase 36323 2019-12-11 15:15:36
-
- Introduction to several garbled code processing methods in Java
- Java garbled solution: 1. The backend receives the request parameters, decodes them according to ISO-8859-1, gets the binary stream, and then encodes it with UTF-8. 2. Modify the server (tomcat) configuration. 3. Set the request parameter encoding directly in the servlet.
- JavaBase 4031 2019-12-10 15:34:16