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:
-
- 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 2997 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 4980 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 15360 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 4970 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 6230 2019-11-20 09:23:06
-
- The difference between equals and '==' in java
- The difference between equals and "==" in Java is: "==" compares the (heap) memory address of the object stored in the variable (stack) memory, and is used to determine whether the addresses of the two objects are the same, while equals is used to What is compared is whether the contents of the two objects are equal.
- JavaBase 2202 2019-11-19 17:03:35
-
- How to configure java
- Java configuration method: First download and install jdk, and then configure JAVA_HOME, PATH, and CLASSPATH according to the jdk installation path in the computer "Environment Variables" configuration interface. You can use the java -version command in cmd to check whether the environment variables are configured successfully.
- JavaBase 6164 2019-11-19 16:54:44
-
- Java prompts that the specified file cannot be found
- The reason why java prompts that the specified file cannot be found is: the file name or file suffix is wrong. Solution: First check whether the file name is correct, and then check whether the file suffix is correct.
- JavaBase 3654 2019-11-19 16:27:54
-
- Java determines whether it is a decimal
- How to determine whether it is a decimal in Java: You can convert the number into a string, and then use the contains() method to determine whether there is a decimal point in the string. If there is a decimal point, it is a decimal. If not, it is not a decimal.
- JavaBase 7032 2019-11-19 16:22:47
-
- Java uses regular expressions to match strings that do not contain a certain rule
- The way Java uses regular expressions to match strings that do not contain a certain rule is to use the regular expression "(?!match pattern)", such as the regular expression "^.*?(?!robots\.txt)", This regular expression represents any character at the beginning and a continuous string not followed by "robots.txt".
- JavaBase 8168 2019-11-19 16:16:56
-
- Java determines whether it is a picture
- How to determine whether it is a picture in java: 1. Determine whether it is a picture through the file suffix name. 2. Determine whether it is a picture through the file header. 3. Judge by MimetypesFileTypeMap. 4. Judge through ImageIO.
- JavaBase 3911 2019-11-19 16:07:34
-
- What are the forms and usages of if statements in java
- The form and usage of if statement in Java are: 1. if statement, usage: "if (conditional statement) {code block}"; 2. "if...else" statement, usage: "if (judgment condition) {execution Statement 1}else{Execute statement 2}".
- JavaBase 4678 2019-11-19 15:56:11
-
- Java determines whether it is a number
- How to determine whether it is a number in java: 1. Use the isDigit() method to determine whether the specified string is a number. 2. Use regular expressions to judge whether it is a number. The regular expressions to judge whether it is a number include "^[-\\+]?[\\d]*$", "[0-9]*", "^[0-9 ]*$" etc.
- JavaBase 49561 2019-11-19 15:54:56
-
- How to define methods in java
- The syntax for defining a method in Java is: "Access modifier + return value type + method name (parameter list) {method body}", where the access modifier is used to determine the scope of permissions to be accessed, and the method name must use a legal identifier symbol.
- JavaBase 9533 2019-11-19 15:37:13
-
- How to read files in java
- Methods of reading files in java: 1. Use the BufferedReader class to read files (text can be read from a character input stream). 2. Use the RandomAccessFile class to read the file. 3. Use the FileInputStream method to read the file.
- JavaBase 5363 2019-11-19 15:28:07