current location:Home > Technical Articles > Java > JavaBase

  • Garbled characters appear when java decompresses zip package
    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 2391 2019-11-29 10:57:29
  • Java error not found symbol solution (referencing custom class)
    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 12557 2019-12-10 17:09:23
  • Reasons and solutions for garbled characters exported from java to excel
    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 7063 2019-12-10 17:07:56
  • Introduction to the method of determining whether a variable is a number in java
    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 6425 2019-12-10 17:06:15
  • Introduction to solutions to garbled java file downloads
    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 2529 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
    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 2408 2019-11-29 09:44:35
  • How to get the day of the week for a specified date in java
    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 6281 2019-11-29 09:32:28
  • Reasons and solutions for reading Chinese garbled characters in Java files
    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 4692 2019-11-29 09:30:30
  • Java determines whether a file directory exists (code attached)
    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 2200 2019-11-29 09:17:20
  • Detailed explanation of events in java with pictures and texts
    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 2356 2019-11-28 17:35:00
  • Set timeout for Socket in Java
    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 5236 2019-11-28 17:17:05
  • How to solve sorting problem using quick sort in divide and conquer method in java
    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 1954 2019-11-28 15:45:02
  • A detailed introduction to String, a common class in Java
    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 3255 2019-11-28 15:30:36
  • Commonly used classes in java——Arrays
    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 1958 2019-11-28 15:15:00
  • How to append elements to a one-dimensional array in java
    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 3894 2019-11-28 14:47:32

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!