current location:Home > Technical Articles > Java > JavaBase

  • Java determines whether array elements are repeated
    Java determines whether array elements are repeated
    How to determine whether array elements are repeated in Java: 1. First deduplicate the array, and then use the array length to determine whether the array elements are repeated. 2. Compare the elements in the array sequentially through a double loop to determine whether the elements are repeated.
    JavaBase 8493 2019-11-22 13:17:27
  • How to determine whether it is a folder in java
    How to determine whether it is a folder in java
    Use isDirectory() in java to check whether an object is a folder, and the return value is of type boolean. Returns true if so, false otherwise.
    JavaBase 2886 2019-11-22 11:47:00
  • How to determine whether two objects are equal in java
    How to determine whether two objects are equal in java
    The equals() method is used in Java to determine whether two objects are equal. The equals() method compares the memory addresses of the two objects to determine whether the two objects are equal.
    JavaBase 6188 2019-11-22 11:00:31
  • Determine whether it is an array in java
    Determine whether it is an array in java
    Methods to determine whether it is an array in Java: 1. Use the instanceof keyword to determine whether it is an array. 2. Use the getClass() method to obtain the object type and determine whether it is an array through the object type.
    JavaBase 5954 2019-11-22 10:47:40
  • Determine whether it is a letter in java
    Determine whether it is a letter in java
    In java, you can use a loop to traverse a string. In the loop, use chars[i]>='a'&&chars[i]<='z')||(chars[i]>='A'&&chars[i]<= The 'Z' statement determines whether each character in the string is a letter.
    JavaBase 3670 2019-11-22 10:31:12
  • what is java method
    what is java method
    A Java method is a collection of statements, an ordered combination of steps to solve a type of problem, which together perform a function. Methods are contained in a class or object, are created in the program, and are referenced elsewhere.
    JavaBase 2138 2019-11-22 10:19:26
  • Introduction to the method of determining whether it is a triangle in java
    Introduction to the method of determining whether it is a triangle in java
    Write a method void triangle(int a, int b, int c) to determine whether the three parameters can form a triangle based on the length of the three sides. If not, an IllegalArgumentException is thrown.
    JavaBase 5387 2019-11-22 09:49:32
  • Java determines whether a string is double type
    Java determines whether a string is double type
    In java, you can define a regular expression "[0-9]+[.]{0,1}[0-9]*[dD]{0,1}" to determine whether it is a double type, and then use matches( ) method checks whether a string matches a given regular expression to determine whether it is a double.
    JavaBase 8823 2019-11-22 09:40:44
  • How to determine whether a string is Chinese in java
    How to determine whether a string is Chinese in java
    Methods to determine whether a string is Chinese in Java: 1. Use the regular expression "[\u4e00-\u9fa5]" to determine whether a string is Chinese. 2. Determine whether the character Unicode encoding in the string is Chinese by looping through it between 19968 and 40869.
    JavaBase 3900 2019-11-22 09:28:17
  • How to determine whether a string is a letter in java
    How to determine whether a string is a letter in java
    In Java, you can use the str.matches("[a-zA-Z]+") method to match whether a string is a letter. The matches() method is used to detect whether a string matches a given regular expression.
    JavaBase 8751 2019-11-22 09:17:48
  • How to solve java servlet garbled characters
    How to solve java servlet garbled characters
    Solution to java servlet garbled code: 1. Use the setCharacterEncoding method to encode the received content. 2. Use the setContextType method to encode the content to be output and forwarded.
    JavaBase 2327 2019-11-21 17:04:18
  • How to determine whether an element is in an array in java
    How to determine whether an element is in an array in java
    Methods to determine whether an element exists in an array in Java: 1. Convert the array into a List, and then use the contains in the List to determine whether the element exists. 2. Use set to determine whether the element exists. 3. Use a loop to traverse the array to determine whether the element exists.
    JavaBase 12792 2019-11-21 16:52:35
  • What are the methods of assigning values ​​to arrays in java?
    What are the methods of assigning values ​​to arrays in java?
    The methods of assigning values ​​to arrays in Java are: 1. Use the direct assignment method, for example: "arr[0]=1"; 2. Use loop traversal to assign values ​​to the array, for example: "for (int num:arr)".
    JavaBase 17359 2019-11-21 16:42:50
  • Determine whether it is a leap year in java
    Determine whether it is a leap year in java
    In Java, you can use the year%4==0&&year%100!=0 and year%400==0 statements to determine whether it is a leap year. As long as the specified year meets these two conditions, it is a leap year.
    JavaBase 6748 2019-11-21 16:30:36
  • How objects are initialized in Java
    How objects are initialized in Java
    The object initialization process in Java: First, the static method of the class will be accessed to complete the initialization of the class, then the jvm will load the compiled file, generate a class object, then allocate sufficient storage space for the object, and finally complete the initialization of the method, the object The initialization is successful.
    JavaBase 3162 2019-11-21 16:14:02

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