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:
-
- What are the ways to determine whether a string is an integer in Java?
- The methods for Java to determine whether a string is an integer are: 1. Use Java's own function "isDigit()" to determine; 2. Use regular expressions to determine; 3. Use ascii code to determine.
- JavaBase 5721 2019-11-20 11:16:38
-
- java installation failed
- Solution to failed java installation: 1. Press win+r and enter regedit to enter the registry interface; 2. Find SoftWare under HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER; 3. Delete JavaSoft under it; 4. Install it again.
- JavaBase 35834 2019-11-20 11:01:38
-
- How to determine whether it is a file in java
- In java, you can use java.io.File.isFile() to determine whether it is a file. java.io.File.isFile() checks whether the file representing this abstract path name is a normal file.
- JavaBase 3479 2019-11-20 11:00:23
-
- How to determine whether it is a folder in java
- In java, you can use the isDirectory() method to determine whether an object is a folder. isDirectory() checks whether an object is a folder. The return value is of type boolean. Returns true if so, false otherwise.
- JavaBase 2620 2019-11-20 10:51:29
-
- What method is used to generate unique random numbers in java
- The method to generate non-repeating random numbers in java is: you can call the "random()" method in the Math class under "java.lang" to generate random numbers, for example: "(int)(Math.random()*10)", Represents a randomly generated integer between 0 and 9.
- JavaBase 3844 2019-11-20 10:48:36
-
- java version version is wrong
- The solution to the wrong java version: first right-click My Computer-Properties-Advanced System Settings-Environment Variables; then find JAVA_HOME in the system variables and change it to the jdk path; finally move %JAVA_HOME%\bin in Path to the front That’s it.
- JavaBase 3355 2019-11-20 10:43:10
-
- Solution to garbled code in java file download
- Solutions to garbled java file downloads: 1. Use encode() to change the encoding method of the file. 2. Use the getBytes() method of String to change the encoding format of the java download file to solve the garbled code.
- JavaBase 3975 2019-11-20 10:36:37
-
- Error loading java vm
- The solution to the java vm error: first uninstall other versions of java in the Control Panel - Programs; then delete the environment variable JAVA_HOME; finally use the absolute path of the jdk when establishing the Path and CLASSPATH environment variables.
- JavaBase 6773 2019-11-20 10:28:56
-
- Java program cannot display Chinese
- Solution to the problem that the java program cannot display Chinese: First run the command "java javaCode" to view the java default encoding, and then enter the command "export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8" to change the encoding to UTF-8.
- JavaBase 8606 2019-11-20 10:23:31
-
- How to run java files
- How to run a java file: Open cmd and enter the javac xxx.java command to compile the java file and generate a class file. Then enter the command java xxx in cmd to run the java file.
- JavaBase 6168 2019-11-20 10:21:59
-
- what is java gc
- Java gc refers to the garbage collection mechanism. When an object can no longer be referenced by subsequent programs, the memory space occupied by this object has no meaning. The Java virtual machine will detect such objects in the memory from time to time and then reclaim this memory space.
- JavaBase 4579 2019-11-20 10:12:43
-
- Java verifies whether it is a number
- Java can use the regular expression "[0-9]*" to verify whether it is a number. You can use the matches() method to detect whether a string matches a given regular expression.
- JavaBase 2478 2019-11-20 10:04:47
-
- How to implement the function of sending text messages in java
- How to implement the function of sending text messages in Java: first add signatures and templates in Alibaba Cloud SMS Service, then create "AccessKey ID" and "Access Key Secret", then download the jar package, and finally create the Sendmss class.
- JavaBase 4213 2019-11-20 10:01:25
-
- import reports error in java
- Solution to java import error: First, right-click the project-Build Path-Add Libraries-JRE System Library; then double-click to select the jdk version corresponding to the project; finally, execute project-clean on the eclipse menu.
- JavaBase 5003 2019-11-20 09:55:20
-
- How to close the window in java
- How to close the window in java: 1. Use JFrame's enableEvents and processWindowEvent to close the window. 2. Directly implement the WindowListener interface to close the window. 3. Use Inner Class to close the window.
- JavaBase 8495 2019-11-20 09:54:06