current location:Home > Technical Articles > Java > JavaBase

  • What does java method mean?
    What does java method mean?
    A Java method is a collection of statements that together perform a function. A method is an ordered combination of steps to solve a type of problem, contained in a class or object, created in a program, and referenced elsewhere.
    JavaBase 6590 2019-11-20 13:26:34
  • java what is method
    java what is method
    A Java method is a collection of statements that together perform a function. A method is an ordered combination of steps to solve a type of problem. Methods are contained in classes or objects. Methods are created in the program and referenced elsewhere.
    JavaBase 2999 2019-11-20 13:25:35
  • How to write java function
    How to write java function
    A function is an independent block of code defined in a class to implement a certain function. Function writing format: access modifier-return value type-function name (parameter type 1-parameter name 1, parameter type 2-parameter name 2..) {execution statement-return-return value}.
    JavaBase 8770 2019-11-20 13:15:10
  • How to call interface in java
    How to call interface in java
    The method of calling the interface in java: first use new URL to create a url; then use openConnection to open the connection with the url; then use setRequestProperty to set the request attributes; then obtain data through the input stream; and finally close the connection.
    JavaBase 6107 2019-11-20 13:13:49
  • What are the java design patterns?
    What are the java design patterns?
    There are 23 Java design patterns, including factory method pattern, abstract factory pattern, singleton pattern, builder pattern, prototype pattern, adapter pattern, decorator pattern, proxy pattern, appearance pattern, bridge pattern, combination pattern and flyweight pattern. etc.
    JavaBase 2758 2019-11-20 11:54:15
  • What is this in java
    What is this in java
    This in java is a keyword in java, and the keyword this can only be used inside a method. The this keyword is generally used to access member variables, member methods, constructors and return a reference to the current object.
    JavaBase 5675 2019-11-20 11:45:28
  • How to determine whether it is a url in java
    How to determine whether it is a url in java
    Java can use regular expressions to determine whether it is a url. Use regular expressions in Java to describe the matching patterns of various URL strings, and then use this regular expression to check whether a string is a URL.
    JavaBase 6024 2019-11-20 11:43:57
  • How many bytes of Chinese characters in java
    How many bytes of Chinese characters in java
    Chinese characters in Java occupy two bytes, because Java uses Unicode as the encoding method. Unicode is a fixed-length encoding standard. Each character is 2 bytes, which is 1 char type space.
    JavaBase 4121 2019-11-20 11:43:53
  • Is it okay if java does not write this?
    Is it okay if java does not write this?
    You don’t need to write this in Java, but you will write it during development, so that you can easily distinguish member variables and formal parameters. Especially when the member variables and formal parameters have the same name, you need to write this.
    JavaBase 3045 2019-11-20 11:20:41
  • Java determines whether the date is today
    Java determines whether the date is today
    How to determine whether the date is today in java: first use the format(Date date) method to format the specified date object into a string in the specified format, and then determine whether it is equal by comparing the specified date with today's date, month, and day. today.
    JavaBase 9062 2019-11-20 11:16:43
  • What are the ways to determine whether a string is an integer in Java?
    What are the ways to determine whether a string is an integer in Java?
    The methods for Java to determine whether a string is an integer are: 1. Use Java's own function "isDigit()" to determine; 2. Use regular expressions to determine; 3. Use ascii code to determine.
    JavaBase 5468 2019-11-20 11:16:38
  • java installation failed
    java installation failed
    Solution to failed java installation: 1. Press win+r and enter regedit to enter the registry interface; 2. Find SoftWare under HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER; 3. Delete JavaSoft under it; 4. Install it again.
    JavaBase 35755 2019-11-20 11:01:38
  • How to determine whether it is a file in java
    How to determine whether it is a file in java
    In java, you can use java.io.File.isFile() to determine whether it is a file. java.io.File.isFile() checks whether the file representing this abstract path name is a normal file.
    JavaBase 3417 2019-11-20 11:00:23
  • How to determine whether it is a folder in java
    How to determine whether it is a folder in java
    In java, you can use the isDirectory() method to determine whether an object is a folder. isDirectory() checks whether an object is a folder. The return value is of type boolean. Returns true if so, false otherwise.
    JavaBase 2539 2019-11-20 10:51:29
  • What method is used to generate unique random numbers in java
    What method is used to generate unique random numbers in java
    The method to generate non-repeating random numbers in java is: you can call the "random()" method in the Math class under "java.lang" to generate random numbers, for example: "(int)(Math.random()*10)", Represents a randomly generated integer between 0 and 9.
    JavaBase 3692 2019-11-20 10:48:36

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