current location:Home > Technical Articles > Java > JavaBase

  • How to determine whether an object is null in java
    How to determine whether an object is null in java
    How to determine whether an object is null in Java: To determine whether an object is null, you can use if(obj==null){} to determine. Reasons for empty objects in Java: 1. The programmer forgot to instantiate it. 2. The empty object is passed from other places.
    JavaBase 4056 2019-12-23 15:26:33
  • Java implements obtaining the character encoding of a text file
    Java implements obtaining the character encoding of a text file
    This article is recommended by the Java introductory learning column. It introduces how to obtain the character encoding of a text file through examples. I hope it can help you. The default encoding of String in Java is UTF-8, which can be obtained using the [Charset.defaultCharset()] statement.
    JavaBase 12197 2019-12-23 11:49:49
  • Java method to determine whether it is empty
    Java method to determine whether it is empty
    How to determine whether it is empty in java: 1. Use the StringUtils.isEmpty(Object str) method to determine whether the string or object is empty. 2. Use the isEmpty() method to determine whether the array or collection is empty.
    JavaBase 2673 2019-12-21 17:07:43
  • Java compressed file garbled problem
    Java compressed file garbled problem
    Solution to the problem of garbled java compressed files: 1. The Chinese garbled content can be solved by using the open source class library in the ant.jar class to compress the file. 2. Garbled comments in compressed files can be solved by using the setEncoding method to specify the encoding of the compressed file.
    JavaBase 2297 2019-12-21 16:38:56
  • Java email garbled solution
    Java email garbled solution
    Solution to garbled java email: 1. Use the encodeText() method to set the email subject encoding format to solve the garbled email title. 2. Set the encoding format of the email body in setContent().
    JavaBase 2325 2019-12-21 16:20:56
  • Several solutions to garbled code problems in Java
    Several solutions to garbled code problems in Java
    Several solutions to garbled code problems in Java: 1. Use req.setCharacterEncoding("UTF-8") to solve the garbled code in the post method. 2. Use resp.setContentType("text/html;charset=utf-8") to solve the garbled response.
    JavaBase 2728 2019-12-21 15:53:48
  • Solution to Java download garbled code
    Solution to Java download garbled code
    Solutions to garbled java downloads: 1. The IE kernel browser uses the specified encoding mechanism to convert the string format through the URLEncoder.encode() method. 2. Non-IE browsers: Use the new String(byte[],decode) method to parse the file using the specified encoding.
    JavaBase 2642 2019-12-21 15:07:54
  • Java method to determine whether strings are not equal
    Java method to determine whether strings are not equal
    How to determine whether strings are equal in Java: 1. Use "==" to determine whether they are equal and return true, and if they are not equal, return false. 2. Use the equals() method to determine whether the strings are equal. If they are equal, it returns true; if they are not equal, it returns false.
    JavaBase 6835 2019-12-21 14:50:40
  • Detailed explanation of java internal classes (with relevant interview questions)
    Detailed explanation of java internal classes (with relevant interview questions)
    In the Java language, a class can be defined in another class or in a method. Such a class is called an inner class. Inner classes in a broad sense generally include these four types: member inner classes, local inner classes, anonymous inner classes and static inner classes.
    JavaBase 2167 2019-12-20 17:29:07
  • Detailed explanation on how to use the final keyword in java
    Detailed explanation on how to use the final keyword in java
    This article introduces the detailed use of the final keyword from the java development introductory column, hoping to help students who are learning. Usage: 1. Modify the class; 2. Modify the member method; 3. Modify the basic variable type; 4. Modify the reference variable; 5. Modify the constant.
    JavaBase 1925 2019-12-20 11:59:42
  • Solution to Chinese garbled characters displayed in Java
    Solution to Chinese garbled characters displayed in Java
    Solution to garbled code displayed in java: 1. JSP Chinese garbled code: Specify the page encoding format as utf-8 at the beginning of each page of the JSP page. 2. Tomcat Chinese garbled code: Specify the encoding format in web.xml.
    JavaBase 4849 2019-12-18 16:39:53
  • How to find java api documentation
    How to find java api documentation
    The method to find the official API document of Java is: 1. First open Baidu, search for Oracle, and open the Oracle official website; 2. Then click [Download for developers] at the bottom of the website; 3. Then find [API] on the right side of the interface , click to enter, click on the version you need to open the document online.
    JavaBase 5125 2019-12-18 16:03:26
  • How to implement layout in java
    How to implement layout in java
    The method to implement layout in java is: 1. First inherit the [JFrame] class and define the components required for the layout; 2. Then create and add components in the constructor; 3. Then make relevant settings for the form, such as the title , size, position, etc.; 4. Finally set the display form.
    JavaBase 3782 2019-12-18 15:44:11
  • How to enable java applets in browsers
    How to enable java applets in browsers
    How to enable the Java applet in the browser: 1. First find the Java program in the start menu; 2. Then under the security option in the Java control panel, turn on the [Enable Java content in the browser] option; 3. Then enter IE On the browser security settings page, click the [Custom Level] option and enable the Java applet script.
    JavaBase 5332 2019-12-18 15:14:11
  • How to add pictures in java form program
    How to add pictures in java form program
    The method of adding pictures in a java form program is: 1. First, create a new folder for saving pictures in the project directory; 2. Then write a program to set the basic information of the form; 3. Then read the files in the folder. Picture, create a [label] object, place the picture on the [label], and set the position; 4. Finally, run the program.
    JavaBase 16568 2019-12-18 14:34:37

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