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 determine whether it is a number in java
- Methods to determine whether it is a number in Java: 1. Use the regular expression "[0-9]*" to determine. 2. Use the function isNumeric() that comes with java to determine. 3. Judge by ASCII code value.
- JavaBase 13839 2019-11-20 15:31:00
-
- How to write if statement in java
- The writing methods of if statements in java are: 1. "if (boolean type expression) {...}"; 2. "if (condition) {...}else{...}"; 3. "if (condition){...}else if (condition){...}else{...}".
- JavaBase 31840 2019-11-20 15:29:53
-
- Java determines whether a character is a Chinese character
- Java can use regular expressions to match the unicode encoding of Chinese characters to determine whether a character is a Chinese character. The regular expression for Java to determine whether a character is a Chinese character is "[\u4e00-\u9fa5]".
- JavaBase 4050 2019-11-20 15:06:37
-
- How to write the file path in java
- How to write java file path: 1. Use forward slashes to represent the path, such as "c:/desktop.txt"; 2. Use backslashes to represent the path, which needs to be escaped, such as "d:\\desktop.txt".
- JavaBase 12814 2019-11-20 14:53:52
-
- How to format date in java
- In java, you can use the constructor SimpleDateFormat(String str) of the SimpleDateFormat class to construct a format for formatting dates, and format the specified date object into a string in the specified format through the format(Date date) method.
- JavaBase 10159 2019-11-20 14:45:54
-
- How to read java error codes
- The first line of the Java error code shows the thread in which the error occurred and the error name; the second line to the last line are the method call chain; the second line shows the specific error code and the line number where it is located.
- JavaBase 5075 2019-11-20 14:34:37
-
- Calculate the day of the week for a specified date in java
- The method to calculate the day of the week for a specified date in Java is: first define an array of weeks, then obtain the Calendar object to operate on the date and time, and finally set the passed in time to the Calendar object.
- JavaBase 3838 2019-11-20 14:28:20
-
- How to define array in java?
- Java array definition method: 1. Dynamic definition: data type stored in the array [] array name = new data type stored in the array [length];. 2. Static definition: data type [] array name = new data type [] {element 1, element 2, element 3..};.
- JavaBase 19514 2019-11-20 14:27:31
-
- Determine whether an array is empty in java
- How to determine whether an array is empty in Java: You can use the array==null||array.length==0 statement to determine whether an array is empty. One-dimensional arrays need to be judged based on the array length, and two-dimensional arrays need to be judged based on the array length of the first row.
- JavaBase 3280 2019-11-20 14:15:52
-
- Java determines whether an array contains an element
- The way to determine whether an array contains an element in Java is to use a for loop to determine, for example: "for (String s: arr)", which will loop through the elements in the array, and then use the if statement to determine.
- JavaBase 5834 2019-11-20 14:07:52
-
- common errors in java
- Common errors in java include: 1. After configuring the java environment variables, the java command still cannot be used; 2. The correct java code cannot be run on the console; 3. The 32-bit jdk cannot be found on the official java website, etc.
- JavaBase 4140 2019-11-20 14:05:25
-
- Java determines whether ip
- You can use the regular expression "([1-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])( \\.(\\d|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])){3}" to determine whether It's IP.
- JavaBase 2075 2019-11-20 13:47:36
-
- How to upload files in java
- The method of uploading files in Java is: first prepare the front-end upload page, then add the corresponding jar package, prepare to receive the file Servlet, then write the file upload background code, and finally prepare the directory to store the uploaded file.
- JavaBase 3592 2019-11-20 13:43:03
-
- java what is an instance
- An instance in Java is an object, an object of a certain class. A class is just an abstract thing, and objects are real things, so they are called instances. For example, an object created using new Persion() is also called an instance.
- JavaBase 5441 2019-11-20 13:42:06
-
- Java determines whether an object is an array
- How to determine whether an object is an array in Java: 1. Use the instanceof operator to determine whether an object is an array. 2. Use the isArray() method to determine whether an object is an array.
- JavaBase 3423 2019-11-20 13:38:12