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:
-
- 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 5549 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 3257 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 3432 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 5099 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 4947 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 4061 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 13236 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 2292 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 4608 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 9019 2019-12-07 15:06:07
-
- Java project garbled solution
- Solution to garbled code in Java projects: 1. Set the encoding of the work space. The system default format is GBK. 2. Set the encoding of the project: Right-click the selected project and select "Properties" - "Resources" - "Other" in the pop-up menu to set the encoding.
- JavaBase 16811 2019-12-07 14:19:40
-
- How to implement rewriting in interface in java
- This article is recommended by the Java language introduction column. It demonstrates rewriting in the interface with an example. I hope it can help you. When an ordinary class implements an interface, both ordinary methods and abstract methods must be rewritten. The default method may or may not be rewritten.
- JavaBase 4285 2019-12-07 12:01:30
-
- How to test interface in java
- Methods for testing interfaces in Java: 1. Test class test: write a test class, call the Facade interface, and get a value from the database, assign an actual parameter to the formal parameter of the interface in the test class, and then run or breakpoint debugging . 2. Use swagger for testing.
- JavaBase 5220 2019-12-07 10:22:49
-
- How to define methods in java
- The method definition syntax in Java is: [modifier] + return value type + method name (parameter type) {method body}. The access modifier is the scope of permissions that the method is allowed to access. The return value type is the type of the method's return value. The method name must use a legal identifier.
- JavaBase 5133 2019-12-07 10:07:17
-
- What does the '=' symbol in java mean?
- The "=" symbol in Java is an assignment operator. The assignment operator refers to the symbol that specifies a numerical value for a variable or constant. It is a binary operator, and the operand on the left must be a variable, not a constant or an expression. Syntax format: variable name = expression content.
- JavaBase 5901 2019-12-07 09:18:26