current location:Home > Technical Articles > Java > JavaBase

  • How to configure the java environment
    How to configure the java environment
    The method to configure the java environment is: first enter the environment variable setting in the computer's advanced system settings, then create a new JAVA_HOME variable in the system variables, then set the system variable Path, and finally create a new variable classpath.
    JavaBase 16059 2019-11-16 11:42:56
  • Garbled characters appear when submitting data via form in java using post method
    Garbled characters appear when submitting data via form in java using post method
    The reason why the data submitted by the form in java in post mode is garbled is because the browser views the ISO8859-1 code table to submit the data by default. Solution: Just set the encoding of the request object. Whichever way the client data is submitted, the request will be set to the encoding.
    JavaBase 2492 2019-11-16 10:46:09
  • How to understand the concept of collections in java
    How to understand the concept of collections in java
    A collection in Java is a container used to store objects. The Java collection class is stored in the java.util package. It should be noted that Java collections can only store objects, and they are references to objects rather than objects themselves.
    JavaBase 5027 2019-11-16 10:32:08
  • Java determines whether it is in an array
    Java determines whether it is in an array
    How to determine whether the data is in the array in java: first use Arrays.asList to convert the array into List type data; then use the contains method of List type data to determine; finally, it can be determined that the data is in the array based on the return value being true.
    JavaBase 4796 2019-11-16 09:43:59
  • what is type in java
    what is type in java
    A type in Java refers to a data type. A data type is the collective name for a set of values ​​with the same properties and a set of operations defined on this set of values. The Java language provides 8 basic data types and reference data types.
    JavaBase 5340 2019-11-16 09:25:47
  • Java determines whether a string contains characters
    Java determines whether a string contains characters
    How to determine whether a string contains characters in Java: 1. Use the startsWidth function. If the return value is true, it means it is included. 2. Use the contains function. If the return value is true, it means it is included. 3. Use the indexOf function. If the return value is not -1, it means it is included.
    JavaBase 4804 2019-11-15 17:25:35
  • The difference between static methods and non-static methods in java
    The difference between static methods and non-static methods in java
    The difference between static methods and non-static methods in Java is: static methods are methods modified with static in the class and have been loaded and allocated when the class is defined, while non-static methods are methods without the static keyword. In the class No memory is occupied when defined.
    JavaBase 7340 2019-11-15 17:16:16
  • Java determines whether a character is in date format
    Java determines whether a character is in date format
    The method to determine whether a character is in date format: first create a function isValidDate that receives a string parameter; then use SimpleDateFormat in the try statement to convert the string into date format; finally, an exception can be caught in catch indicating that the string is not in date format.
    JavaBase 5127 2019-11-15 17:14:27
  • How to use java package
    How to use java package
    How to use java packages: Packages are used to avoid class name conflicts. When defining a package, add "package package name;" in the first line of the code. When using a package, use "import package name.class name;" to import.
    JavaBase 3647 2019-11-15 16:52:49
  • How to understand the concept of process in java
    How to understand the concept of process in java
    The process in Java is the basis of the operating system structure. Each process has its own address space. At the same time, the process is also an executing program. Only when the processor gives life to the program can it become an active entity.
    JavaBase 3031 2019-11-15 16:44:11
  • java inserts mysql garbled code
    java inserts mysql garbled code
    Solution to java inserting garbled characters into mysql: 1. Specify the character set as utf-8 on the front-end page; 2. Use setCharacterEncoding to set the encoding format when receiving parameters in the background; 3. Use the parameter "characterEncoding=utf8" when connecting to the database.
    JavaBase 1912 2019-11-15 16:23:47
  • java program development steps
    java program development steps
    The development steps of a Java program are: 1. Analyze what the class should do; 2. List instance variables and methods; 3. List methods and pseudocode; 4. Write test programs for methods; 5. Implement classes; 6. Test Method; 7. Debug or redesign.
    JavaBase 13498 2019-11-15 16:16:10
  • How to use java code
    How to use java code
    Usage of java code: java code needs to be compiled using a compiler to generate class files in order to be executed correctly. First, we can use the eclipse software to import the java project; then set the encoding of the file; and finally click the run button of eclipse.
    JavaBase 4757 2019-11-15 16:01:26
  • What are collections in java
    What are collections in java
    Collections in java include: 1. List collection (ArrayList collection, Vector collection, LinkedList collection); 2. Set collection (Hashset collection, Treeset collection).
    JavaBase 8344 2019-11-15 15:40:54
  • The difference between interface and class in java
    The difference between interface and class in java
    The difference between interfaces and classes in Java is: 1. Interfaces are a collection of abstract methods, and classes are used to describe the properties and methods of objects; 2. All properties in interfaces are "public static final", and classes are public by default. of.
    JavaBase 4598 2019-11-15 15:26:41

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