current location:Home > Technical Articles > Java > JavaBase

  • The difference between equals and '==' in java
    The difference between equals and '==' in java
    The difference between equals and "==" in Java is: "==" compares the (heap) memory address of the object stored in the variable (stack) memory, and is used to determine whether the addresses of the two objects are the same, while equals is used to What is compared is whether the contents of the two objects are equal.
    JavaBase 2006 2019-11-19 17:03:35
  • How to configure java
    How to configure java
    Java configuration method: First download and install jdk, and then configure JAVA_HOME, PATH, and CLASSPATH according to the jdk installation path in the computer "Environment Variables" configuration interface. You can use the java -version command in cmd to check whether the environment variables are configured successfully.
    JavaBase 5972 2019-11-19 16:54:44
  • Java prompts that the specified file cannot be found
    Java prompts that the specified file cannot be found
    The reason why java prompts that the specified file cannot be found is: the file name or file suffix is ​​wrong. Solution: First check whether the file name is correct, and then check whether the file suffix is ​​correct.
    JavaBase 3430 2019-11-19 16:27:54
  • Java determines whether it is a decimal
    Java determines whether it is a decimal
    How to determine whether it is a decimal in Java: You can convert the number into a string, and then use the contains() method to determine whether there is a decimal point in the string. If there is a decimal point, it is a decimal. If not, it is not a decimal.
    JavaBase 6534 2019-11-19 16:22:47
  • Java uses regular expressions to match strings that do not contain a certain rule
    Java uses regular expressions to match strings that do not contain a certain rule
    The way Java uses regular expressions to match strings that do not contain a certain rule is to use the regular expression "(?!match pattern)", such as the regular expression "^.*?(?!robots\.txt)", This regular expression represents any character at the beginning and a continuous string not followed by "robots.txt".
    JavaBase 7819 2019-11-19 16:16:56
  • Java determines whether it is a picture
    Java determines whether it is a picture
    How to determine whether it is a picture in java: 1. Determine whether it is a picture through the file suffix name. 2. Determine whether it is a picture through the file header. 3. Judge by MimetypesFileTypeMap. 4. Judge through ImageIO.
    JavaBase 3546 2019-11-19 16:07:34
  • What are the forms and usages of if statements in java
    What are the forms and usages of if statements in java
    The form and usage of if statement in Java are: 1. if statement, usage: "if (conditional statement) {code block}"; 2. "if...else" statement, usage: "if (judgment condition) {execution Statement 1}else{Execute statement 2}".
    JavaBase 4454 2019-11-19 15:56:11
  • Java determines whether it is a number
    Java determines whether it is a number
    How to determine whether it is a number in java: 1. Use the isDigit() method to determine whether the specified string is a number. 2. Use regular expressions to judge whether it is a number. The regular expressions to judge whether it is a number include "^[-\\+]?[\\d]*$", "[0-9]*", "^[0-9 ]*$" etc.
    JavaBase 49282 2019-11-19 15:54:56
  • How to define methods in java
    How to define methods in java
    The syntax for defining a method in Java is: "Access modifier + return value type + method name (parameter list) {method body}", where the access modifier is used to determine the scope of permissions to be accessed, and the method name must use a legal identifier symbol.
    JavaBase 9302 2019-11-19 15:37:13
  • How to read files in java
    How to read files in java
    Methods of reading files in java: 1. Use the BufferedReader class to read files (text can be read from a character input stream). 2. Use the RandomAccessFile class to read the file. 3. Use the FileInputStream method to read the file.
    JavaBase 5143 2019-11-19 15:28:07
  • Java determines whether the file is empty
    Java determines whether the file is empty
    In Java, you can use the return value of the length() method to determine whether the file is empty. If the file does not exist or the file is empty, the length() method returns 0.
    JavaBase 4068 2019-11-19 15:06:02
  • Java determines whether a file exists
    Java determines whether a file exists
    In Java, you can use the file.exists() method to detect whether a file exists, and public boolean exists() to test whether the file or directory represented by this abstract path name exists.
    JavaBase 3997 2019-11-19 14:46:18
  • The difference between c# interface and java interface
    The difference between c# interface and java interface
    The difference between the C# interface and the Java interface is that the interface in Java can contain fields, but these fields are modified with the "static" and "final" keywords, while C# does not allow fields in the interface.
    JavaBase 4063 2019-11-19 14:45:15
  • How is java output?
    How is java output?
    There are four types of output statements in java: 1. System.out.println() (line feed printing). 2. System.out.print() (printing without line breaks). 3. System.out.write() (byte output). 4. System.out.printf().
    JavaBase 6112 2019-11-19 14:32:06
  • Determine whether a character is a number in Java
    Determine whether a character is a number in Java
    How to determine whether a character is a number in Java: You can use Java's own function "Character.isDigit(char a)" to determine. If character a is a number, it returns true, otherwise it returns false.
    JavaBase 2497 2019-11-19 14:24:50

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!