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:
-
- 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 5706 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 5166 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 9808 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 36499 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 4199 2019-12-10 15:34:16
-
- Solution to the problem that java eclipse cannot be opened
- The reason why java eclipse cannot be opened may be because the JDK is not configured properly. We can add three environment variables "Java_Home", "Classpath" and "Path" to the "System Variables" to solve the problem.
- JavaBase 5634 2019-12-10 11:28:11
-
- Solution to Chinese garbled code in Java page
- Solution to garbled java page: 1. Set the Encoding option in JSP Files in eclips to UTF-8. 2. Modify the jsp file header to UTF-8. 3. Set the request object encoding in servlet. 4. Set the configuration file in tomat.
- JavaBase 3335 2019-12-10 10:58:39
-
- Java web garbled solution
- Solution to Java web garbled code: 1. Set the encoding format for file saving to be the same as the page encoding format. 2. The encoding declared in jsp. 3. Set the character encoding processed in the filter, which is limited to the input and output data encoding.
- JavaBase 3513 2019-12-09 16:33:05
-
- How to find unique numbers in an array in java
- The idea of finding non-repeating numbers in an array in Java is: first compare the first number in the array with each number in the array. If the number of times the two numbers are the same is equal to 2, it means that the two numbers are repeated. , if the same number of times is equal to 1, it means that the two numbers are not repeated.
- JavaBase 5375 2019-12-09 16:14:46
-
- How to import excel files in java
- The idea of importing excel files in java is: upload the file first, and then read the data of the file. The specific method is: first make a temporary table of imported information to store the information in the imported file. Whenever importing, first clear the table information, then get the data and put it in, then check the imported data, and finally Just import them all.
- JavaBase 5052 2019-12-09 15:50:47
-
- What is process synchronization and synchronous transmission in java
- Process synchronization in Java means: when a function call is issued, the call will not return before the result is obtained. That is, one thing must be done one by one, and the next thing cannot be done until the previous thing is completed. thing. Synchronous transmission means that the time interval between data blocks is fixed, and their time relationship must be strictly specified.
- JavaBase 4148 2019-12-09 15:30:52
-
- How to generate non-repeating random numbers in java
- How to generate non-repeating random numbers in java: Use the random() method in the Math class below java.lang to generate random numbers, and then store the generated random numbers in a set (a set is a value without repeating). When there are repeating values , will not be added to it. The numbers in the set generated using this method are non-repeating random numbers.
- JavaBase 13321 2019-12-09 14:48:14
-
- Solution to Java reading and writing garbled characters
- Solution to Java reading and writing garbled characters: 1. When reading a file, use the InputStreamReader class to read bytes using the specified character set and decode them into characters. 2. When writing a file, use the specified character set through the OutputStreamWriter class to encode the characters written into bytes.
- JavaBase 2404 2019-12-09 13:18:46
-
- Solutions to garbled characters in java files
- Garbled characters in Java files are caused by the different encoding formats of the Java files and the editor. We can set the corresponding encoding display in the editor, or convert all the Java files in the project to supported encodings.
- JavaBase 4719 2019-12-09 11:30:09
-
- How to decompile java
- Java decompilation method: You can use java decompilation tools to decompile, such as javap, jad, cfr and the visual decompilation tool JD-GUI. We can directly use commands or directly drag files to the visual decompilation tool JD- Decompilation is available in the GUI.
- JavaBase 9255 2019-12-07 15:06:07