current location:Home > Technical Articles > Java > JavaBase

  • Java determines whether it is a palindrome number
    Java determines whether it is a palindrome number
    How to determine the number of palindromes in Java: First, use Scanner to obtain the string input by the user; then create a StringBuffer character buffer object and use reverse to invert the string content; then use a for loop to detect the number that is the same as the corresponding position of the original string; finally, according to The same number can be judged.
    JavaBase 3665 2019-11-13 14:20:17
  • How to determine whether an object is empty in java
    How to determine whether an object is empty in java
    The method to determine whether an object is empty in Java is: first use object==null to determine. When the object is null, it returns true, otherwise it returns false. Then when object!=null is true, further determine whether all properties of the object are null.
    JavaBase 13710 2019-11-13 14:10:22
  • How to close java program
    How to close java program
    How to close a java program: First use Thread.currentThread() to get the current thread; then use the interrupt method to exit the program. If there are multiple threads in the program, you can use System.exit(0) to completely exit the program.
    JavaBase 8833 2019-11-13 14:06:24
  • How to create a new java file
    How to create a new java file
    How to create a new java: 1. Open the Eclipse program; 2. Click file-new-java project on the upper left to create a new project; 3. Click File-New-Package to create a new project package; 4. Right-click new- in the src folder on the left class can be used to create a class.
    JavaBase 9369 2019-11-13 13:50:23
  • How to determine whether a character is a number in java
    How to determine whether a character is a number in java
    The method to determine whether a character is a number in Java is: 1. Use the regular expression "[0-9]*" to check whether the character is a number; 2. Use the function Character.isDigit that comes with Java to determine whether the character is a number; 3. , use indexOf index to determine whether the character is a number.
    JavaBase 6208 2019-11-13 13:48:58
  • What is a thread in java
    What is a thread in java
    A thread in Java refers to an instance of the java.lang.Thread class or the execution of a thread. Use the java.lang.Thread or java.lang.Runnable interface to write code to define, instantiate, and start new threads.
    JavaBase 3174 2019-11-13 13:45:43
  • what is java static
    what is java static
    Java static includes static variables, static methods, and static initialization blocks. Static variables belong to the entire class and are shared by all objects of the class; static methods can be called through the class name, and only static members of the class can be accessed in the method; static initialization blocks are executed when the class is loaded, and will only be executed once.
    JavaBase 3485 2019-11-13 13:39:14
  • What is serialization in java
    What is serialization in java
    Java serialization refers to the Java object data in the heap memory, which is stored in a disk file in some way, or passed to other network nodes (network transmission). This process is called serialization, which usually refers to the process of converting a data structure or object into binary.
    JavaBase 3470 2019-11-13 13:36:41
  • How to determine what day of the week a specified date is in java
    How to determine what day of the week a specified date is in java
    The method to determine the day of the week for a specified date in Java is: 1. First define an array to store the date information; 2. Get the Calendar object to facilitate date and time operations; 3. Set the passed time into the Calendar object; 4. Print the date information.
    JavaBase 4396 2019-11-13 13:33:47
  • What is io stream in java
    What is io stream in java
    Java io streams are mainly used for data transmission. The streams are abstracted into various classes according to the data transmission characteristics to facilitate more intuitive data operations. Java io streams can be divided into character streams, byte streams, input and output streams, etc.
    JavaBase 3447 2019-11-13 13:19:13
  • How to determine whether a certain year is a leap year in Java
    How to determine whether a certain year is a leap year in Java
    The way to determine whether a year is a leap year in Java is: first determine whether a year is a non-hundred year, and if it is a non-hundred year, then determine whether it is divisible by 4, and if it is a centenary, then determine whether it is divisible by 400. .
    JavaBase 4943 2019-11-13 13:17:21
  • what is java program
    what is java program
    A java program is a computer program written in the java language. Its entry function is the main function. The .class file is generated by the compiler and executed through the jvm.
    JavaBase 5113 2019-11-13 11:53:02
  • Example tutorial of calling interface in java
    Example tutorial of calling interface in java
    The method of calling the interface in java: 1. First URL restURL = new URL(url); 2. setRequestMethod("POST"); 3. setDoOutput(true); 4. Create a stream to write or read the return value.
    JavaBase 4852 2019-11-13 11:50:51
  • What to do if java characters are garbled
    What to do if java characters are garbled
    The solution to garbled Java characters: first re-encode the string and then decode it; then set the encoding to "name=new String(name.getBytes(),"UTF-8");".
    JavaBase 2749 2019-11-13 11:38:50
  • what is java proxy
    what is java proxy
    Java proxy does not access the target directly, but accesses it through an intermediate layer. In some cases, one object does not want or cannot directly reference another object, and the proxy object can act as an intermediary between the client and the target object. effect.
    JavaBase 4834 2019-11-13 11:37: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