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:
-
- Garbled characters appear when java decompresses zip package
- The solution to garbled characters when decompressing "java" "zip" packages is: first determine whether the file to be decompressed exists or whether the path is correct, then determine whether the path exists, if not, create the path, then determine whether the compressed file is legal, and finally set The file name can be encoded as "GBK".
- JavaBase 2447 2019-11-29 10:57:29
-
- Java error not found symbol solution (referencing custom class)
- Solution to the error "symbol not found" when java references a custom class: 1. Compile the referenced class first, and then add the name of the folder where the file is located in the command to compile the java file. 2. Add the javac -classpath (cp) parameter when compiling the java file.
- JavaBase 12597 2019-12-10 17:09:23
-
- Reasons and solutions for garbled characters exported from java to excel
- Reason for garbled code: httpheader requires that the exported content must be encoded in iso8859-1. Solution: When exporting Excel from Java, convert the content encoding to "iso8859-1" encoding, and use the String(byte[],decode) method to transcode.
- JavaBase 7121 2019-12-10 17:07:56
-
- Introduction to the method of determining whether a variable is a number in java
- How to determine whether a variable is a number in Java: 1. Use the regular expression "[0-9]*" to determine. 2. Use the isDigit() function to determine. 3. Use org.apache.commons.lang to judge. 4. Determine whether the variable is a number by judging the ASCII code value.
- JavaBase 6487 2019-12-10 17:06:15
-
- Introduction to solutions to garbled java file downloads
- Solution to garbled java file download: 1. Use the encode() method in IE or a browser with IE as the core to transcode the file name to solve the problem. 2. Convert the file name to a string in non-IE browsers, and then transcode the string to solve the problem.
- JavaBase 2578 2019-11-29 10:11:40
-
- How to determine whether a string is a date in java
- How to determine whether a string is a date in java: first customize the date format, and then use the DateFormat class or SimpleDateFormat class to determine whether it is the correct date format to determine whether it is a date.
- JavaBase 2446 2019-11-29 09:44:35
-
- How to get the day of the week for a specified date in java
- The way to get the day of the week for a specified date in "java" is: first define an array to save the day of the week information, then instantiate a calendar class object, then get the day of the week correctly by calling "Calendar.DAY_OF_WEEK", and finally use "if" The statement can be further judged.
- JavaBase 6318 2019-11-29 09:32:28
-
- Reasons and solutions for reading Chinese garbled characters in Java files
- The reason why Java reads Chinese garbled files is because the encoding format is not set when reading the file, and the local encoding format is used by default. Solution: Specify the encoding format of the data stream when reading the data stream in Java to solve the problem of garbled characters.
- JavaBase 4750 2019-11-29 09:30:30
-
- Java determines whether a file directory exists (code attached)
- In Java, you can use the exists() method to determine whether the file or directory represented by the abstract path name exists, and then use the isDirectory() method to check whether the object is a folder. If it is a folder, it returns true, otherwise it returns false.
- JavaBase 2246 2019-11-29 09:17:20
-
- Detailed explanation of events in java with pictures and texts
- The Java language uses an authorized event model to process events. Under this model, each component has corresponding events, such as a click event for a button, a content change event for a text field, etc. This article explains events in java in detail.
- JavaBase 2399 2019-11-28 17:35:00
-
- Set timeout for Socket in Java
- Socket, also known as socket, is a protocol, convention or specification for network communication between different processes. This article introduces in detail the two methods of setting timeout for Socket in Java, and introduces the differences between the two methods.
- JavaBase 5322 2019-11-28 17:17:05
-
- How to solve sorting problem using quick sort in divide and conquer method in java
- This article is recommended by the Java introductory tutorial column. It explains how to use quick sort to solve sorting problems with examples. Everyone is welcome to exchange and discuss. The basic idea of quick sort is based on the divide-and-conquer strategy, and its algorithmic ideas are: 1. Decomposition; 2. Governance; 3. Merge.
- JavaBase 2000 2019-11-28 15:45:02
-
- A detailed introduction to String, a common class in Java
- This article introduces the commonly used class in Java - String from the java introductory column. I hope it can help students in need. The "java.lang.String" class represents strings, and all string literals in Java programs (such as "abc") can be regarded as instances that implement this class.
- JavaBase 3304 2019-11-28 15:30:36
-
- Commonly used classes in java——Arrays
- This article introduces the commonly used class in Java - Arrays in detail from the java introductory program column. I hope it can help you. The "java.util.Arrays" class contains various methods for operating arrays, such as sorting and searching. All its methods are static methods and are very simple to call.
- JavaBase 2002 2019-11-28 15:15:00
-
- How to append elements to a one-dimensional array in java
- This article demonstrates for everyone how to append elements to a one-dimensional array. Welcome to visit the java zero-based entry column. When appending new elements to a one-dimensional array, a temporary array is generally created first, then the new element is added, and finally the temporary array address pointer reference is assigned to the original array.
- JavaBase 3939 2019-11-28 14:47:32