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 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 3123 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 3758 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 6378 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 8348 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 5896 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 4346 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 2257 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 3991 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 4664 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 7920 2019-11-20 09:54:06
-
- How to implement verification function in java
- How to implement the verification function in java: first use the scanner class to obtain the input data, then store the entered user name, then store the entered password, and finally use the "if else" statement to verify the user name and password.
- JavaBase 2788 2019-11-20 09:47:09
-
- How to get keyboard input data in java
- Java can use the Scanner class to obtain keyboard input data. Scanner is a text scanner based on regular expressions. Values of basic types and string types can be parsed from files, input streams, and strings.
- JavaBase 4757 2019-11-20 09:45:23
-
- How to import java project in eclipse
- How to import java projects into eclipse: 1. Open the eclipse software; 2. Click file-Import; 3. Select General-Existing Projects into and click next; 4. Select the project path and click finish.
- JavaBase 15117 2019-11-20 09:41:18
-
- How to enter data in java program
- To input data in a java program, you can use the Scanner class, such as "Scanner in = new Scanner(System.in)". This code means creating a Scanner. The console will wait for data input and pass the input content to the Scanner as the scanning object. .
- JavaBase 4732 2019-11-20 09:33:25
-
- How to get the file size in java
- How to get the file size in java: 1. Get it through the length() method of file. 2. Obtained through the streaming method in file.io.*. 3. Obtain it through the FileChannel tool in file.nio.*.
- JavaBase 6001 2019-11-20 09:23:06