current location:Home > Technical Articles > Java > JavaBase

  • How to determine whether it is a number in java
    How to determine whether it is a number in java
    Methods to determine whether it is a number in Java: 1. Use the regular expression "[0-9]*" to determine. 2. Use the function isNumeric() that comes with java to determine. 3. Judge by ASCII code value.
    JavaBase 13839 2019-11-20 15:31:00
  • How to write if statement in java
    How to write if statement in java
    The writing methods of if statements in java are: 1. "if (boolean type expression) {...}"; 2. "if (condition) {...}else{...}"; 3. "if (condition){...}else if (condition){...}else{...}".
    JavaBase 31840 2019-11-20 15:29:53
  • Java determines whether a character is a Chinese character
    Java determines whether a character is a Chinese character
    Java can use regular expressions to match the unicode encoding of Chinese characters to determine whether a character is a Chinese character. The regular expression for Java to determine whether a character is a Chinese character is "[\u4e00-\u9fa5]".
    JavaBase 4050 2019-11-20 15:06:37
  • How to write the file path in java
    How to write the file path in java
    How to write java file path: 1. Use forward slashes to represent the path, such as "c:/desktop.txt"; 2. Use backslashes to represent the path, which needs to be escaped, such as "d:\\desktop.txt".
    JavaBase 12814 2019-11-20 14:53:52
  • How to format date in java
    How to format date in java
    In java, you can use the constructor SimpleDateFormat(String str) of the SimpleDateFormat class to construct a format for formatting dates, and format the specified date object into a string in the specified format through the format(Date date) method.
    JavaBase 10159 2019-11-20 14:45:54
  • How to read java error codes
    How to read java error codes
    The first line of the Java error code shows the thread in which the error occurred and the error name; the second line to the last line are the method call chain; the second line shows the specific error code and the line number where it is located.
    JavaBase 5075 2019-11-20 14:34:37
  • Calculate the day of the week for a specified date in java
    Calculate the day of the week for a specified date in java
    The method to calculate the day of the week for a specified date in Java is: first define an array of weeks, then obtain the Calendar object to operate on the date and time, and finally set the passed in time to the Calendar object.
    JavaBase 3838 2019-11-20 14:28:20
  • How to define array in java?
    How to define array in java?
    Java array definition method: 1. Dynamic definition: data type stored in the array [] array name = new data type stored in the array [length];. 2. Static definition: data type [] array name = new data type [] {element 1, element 2, element 3..};.
    JavaBase 19514 2019-11-20 14:27:31
  • Determine whether an array is empty in java
    Determine whether an array is empty in java
    How to determine whether an array is empty in Java: You can use the array==null||array.length==0 statement to determine whether an array is empty. One-dimensional arrays need to be judged based on the array length, and two-dimensional arrays need to be judged based on the array length of the first row.
    JavaBase 3280 2019-11-20 14:15:52
  • Java determines whether an array contains an element
    Java determines whether an array contains an element
    The way to determine whether an array contains an element in Java is to use a for loop to determine, for example: "for (String s: arr)", which will loop through the elements in the array, and then use the if statement to determine.
    JavaBase 5834 2019-11-20 14:07:52
  • common errors in java
    common errors in java
    Common errors in java include: 1. After configuring the java environment variables, the java command still cannot be used; 2. The correct java code cannot be run on the console; 3. The 32-bit jdk cannot be found on the official java website, etc.
    JavaBase 4140 2019-11-20 14:05:25
  • Java determines whether ip
    Java determines whether ip
    You can use the regular expression "([1-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])( \\.(\\d|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])){3}" to determine whether It's IP.
    JavaBase 2075 2019-11-20 13:47:36
  • How to upload files in java
    How to upload files in java
    The method of uploading files in Java is: first prepare the front-end upload page, then add the corresponding jar package, prepare to receive the file Servlet, then write the file upload background code, and finally prepare the directory to store the uploaded file.
    JavaBase 3592 2019-11-20 13:43:03
  • java what is an instance
    java what is an instance
    An instance in Java is an object, an object of a certain class. A class is just an abstract thing, and objects are real things, so they are called instances. For example, an object created using new Persion() is also called an instance.
    JavaBase 5441 2019-11-20 13:42:06
  • Java determines whether an object is an array
    Java determines whether an object is an array
    How to determine whether an object is an array in Java: 1. Use the instanceof operator to determine whether an object is an array. 2. Use the isArray() method to determine whether an object is an array.
    JavaBase 3423 2019-11-20 13:38:12

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