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:
-
- How to export exe from java
- How to export exe from java: 1. Open the Eclipse project and right-click Export; 2. Select java-Runnable JAR file to export the jar file; 3. Download and install the exe4j software; 4. Select JAR in EXE and configure the jar file path and export path. .
- JavaBase 6936 2019-11-15 10:43:12
-
- How to assign value in java
- Java assignment method: The assignment statement in the Java programming language is the "=" sign. For example, assigning the number 1 to a variable can be written as "int a = 1;", and the String type can be written as "String a = "1";"; object You can use "User u1 = new User();".
- JavaBase 18277 2019-11-15 10:25:16
-
- How to write constructor in java
- How to write a java constructor: The constructor needs to meet the following conditions: the function name is the same as the class name, there is no need to write the return value type, and no return statement can be written. For example, "class Demo{Demo(){}}" is a complete constructor.
- JavaBase 7734 2019-11-15 10:09:19
-
- What does api mean in java
- API in Java refers to application programming interface. For example: If you want to write a robot program to control the robot to play football, the developer must provide some Java classes for controlling the robot. These Java classes are the interfaces provided for application programming.
- JavaBase 6180 2019-11-15 09:51:01
-
- What to do if the java url is Chinese garbled?
- The solution to the Chinese garbled URL: first, the client uses encodeURI twice to encode the URL when passing the value; then the server obtains the parameters through request.getParameter; finally, the server uses URLDecoder.decode to decode the parameters.
- JavaBase 3454 2019-11-15 09:46:18
-
- What does the '<<' symbol in java mean?
- The << symbol in Java represents a logical left shift, and 0 is added to the right. The sign bit needs to be moved like other bits. For example: Calculating 3<<2 means shifting the number 3 to the left by 2 places. It should be noted that this process is performed in binary.
- JavaBase 11255 2019-11-15 18:05:23
-
- Garbled characters appear when opening java files in eclipse
- The solution to the garbled code when opening a java file in eclipse: 1. First check the encoding of the java file; 2. Enter the eclipse property settings page; 3. Select the content types option; 4. Modify the file encoding to utf-8; 5. Clear the project compilation document.
- JavaBase 4591 2019-11-15 09:22:07
-
- How to execute tasks regularly in java
- How to implement java timing: first create a Timer object timer and a TimerTask object task; then use "timer.schedule(task, 3000L);" to implement the scheduled task.
- JavaBase 5133 2019-11-14 16:41:36
-
- How to package Java
- Java packaging method: 1. Use javac to generate class files; 2. Create a new file and enter Manifest and other information; 3. Put the first two files into the same folder; 4. Run "jar -cvfm main.jar manifest -C in cmd test." can be packaged.
- JavaBase 12608 2019-11-14 16:23:44
-
- java prompts insufficient permissions
- Solution to the problem that java prompts that the permissions are insufficient: 1. Use Xshell to connect to the server; 2. Use the command whereis java to find the java path; 3. Use the command "chmod +x java path" to add execution permissions to java.
- JavaBase 6978 2019-11-14 16:03:29
-
- java determines whether a file exists in a folder
- How to determine the existence of files in a folder in java: first use the File class to create a file object; then use the file.list method to obtain the file list under the folder and store it in the filelist array; finally, obtain the array length based on filelist.length and determine if the length is greater than 0 File exists.
- JavaBase 5909 2019-11-14 15:50:51
-
- What are the methods in java
- Java methods include: 1. General methods; 2. Construction methods; 3. Methods without parameters and return values; 4. Methods with parameters and return values; 5. Static methods; 6. Non-static methods; 7. Abstract methods, etc.
- JavaBase 6798 2019-11-14 15:28:56
-
- How to convert string into character array in java
- How to convert a string into a character array in java: Use the String.toCharArray() method to convert a string into a character array, for example "char ss[] = str.toCharArray()" to convert str into a character and save it in the ss array inside.
- JavaBase 61874 2019-11-14 15:07:59
-
- How to recurse in java
- Java recursion requires three conditions, 1. Boundary conditions, 2. Recursive forward section, 2. Recursive return section. When the boundary conditions are not met, the recursion advances; when the boundary conditions are met, the recursion returns.
- JavaBase 4858 2019-11-14 14:50:13
-
- How to paginate in java
- Java paging method: 1. Create a Page class, which stores the number of pages currently visited and the number of rows displayed on each page; 2. Calculate the required data through paging; 3. The front end uses jsp to combine the calculated data with html elements. Just show it.
- JavaBase 4923 2019-11-14 14:29:35