current location:Home > Technical Articles > Java

  • AVL Trees
    AVL Trees
    AVL Tree is a balanced binary search tree. The post introduced binary search trees. The search, insertion, and deletion times for a binary tree depend on the height of the tree. In the worst case, the height is O(n). If a tree is perfectly balanced–i
    javaTutorial 642 2024-07-25 08:04:13
  • The AVLTree Class
    The AVLTree Class
    The AVLTree class extends the BST class to override the insert and delete methods to rebalance the tree if necessary. The code below gives the complete source code for the AVLTree class. package demo; public class AVLTree
    javaTutorial 350 2024-07-25 07:04:43
  • Understanding Value Types (Project Valhalla)
    Understanding Value Types (Project Valhalla)
    Project Valhalla is an ongoing effort by the OpenJDK community to introduce Value Types to the Java platform. Value Types are a new kind of type that allows more efficient and flexible data handling by providing a way to model immutable data without
    javaTutorial 941 2024-07-25 07:04:33
  • Designing Classes for AVL Trees
    Designing Classes for AVL Trees
    Since an AVL tree is a binary search tree, AVLTree is designed as a subclass of BST. An AVL tree is a binary tree, so you can define the AVLTree class to extend the BST class, as shown in Figure below. The BST and TreeNode classes were defined in Sec
    javaTutorial 300 2024-07-25 06:38:22
  • Exception Handling in Spring Boot
    Exception Handling in Spring Boot
    Exception handling is a critical part of building robust and user-friendly applications. In Spring Boot, we can handle exceptions in various ways to ensure our application remains stable and provides meaningful feedback to users. This guide will cove
    javaTutorial 559 2024-07-25 06:35:12
  • Creating Custom Annotations for Validation in Spring Boot
    Creating Custom Annotations for Validation in Spring Boot
    Creating Custom Annotations for Validation in Spring Boot 1. Overview While Spring standard annotations (@NotBlank, @NotNull, @Min, @Size, etc.) cover many use cases when validating user input, there are times when we need to create
    javaTutorial 439 2024-07-25 01:52:13
  • How to use project Lombok
    How to use project Lombok
    Project Lombok is a Java library that helps reduce boilerplate code by automatically generating commonly used methods and annotations. It provides annotations that can simplify and reduce the verbosity of your Java classes, making your code more read
    javaTutorial 804 2024-07-24 19:26:41
  • SOLID Oriented Development
    SOLID Oriented Development
    In software development, code maintenance, extension, and flexibility are important to the long-term success of a project. The SOLID principles were formulated to guide developers in creating code that is easier
    javaTutorial 658 2024-07-24 16:37:00
  • Understanding the Memento Design Pattern in Java
    Understanding the Memento Design Pattern in Java
    Problem The Memento pattern addresses the need to capture and restore an object's internal state without violating its encapsulation. This is useful in scenarios where you want to implement undo/redo functionality, allowing an object to revert
    javaTutorial 445 2024-07-24 16:06:57
  • Object creation
    Object creation
    How objects are created The line Vehicle minivan = new Vehicle(); declares an object of type Vehicle. The declaration does two things: Declares a variable called minivan of the Vehicle class. Creates a physical copy of the object and assigns the minivan a re
    javaTutorial 1152 2024-07-24 13:07:42
  • Persistent and Immutable Java LinkedList
    Persistent and Immutable Java LinkedList
    In this article we are going to implement a persistent and immutable variation of the LinkedList in Java with partial structural sharing for time and space efficiency gains. Introduction What is a LinkedList A linked list is a da
    javaTutorial 560 2024-07-24 11:44:21
  • Exploring Java Record Types
    Exploring Java Record Types
    Java Record Types, introduced in Java 14 as a preview feature and made stable in Java 16, provide a concise way to define immutable data carriers. They are designed to simplify the task of creating simple data-holding classes by reducing boilerplate
    javaTutorial 779 2024-07-24 11:19:31
  • Introduction to Project Loom
    Introduction to Project Loom
    Project Loom is an ongoing effort by the OpenJDK community to introduce lightweight, efficient threads, known as fibers, and continuations to the Java platform. These new features aim to simplify concurrent programming and improve the scalability of
    javaTutorial 631 2024-07-24 10:56:22
  • Exception Handling In Java
    Exception Handling In Java
    When you run a Java code or program, it will either compile and execute or throw an error. When a code throws an, it’s a result of either an error or an exception. An error is more critical. It occurs outside the scope of the code but within the env
    javaTutorial 905 2024-07-24 10:52:41
  • Binary Search
    Binary Search
    Median of two sorted arrays class Solution { public double findMedianSortedArrays(int[] nums1, int[] nums2) { //merge these two arrays and find the median of the newly sorted array int arr[] = new int[nums1.length + nums2.length
    javaTutorial 971 2024-07-24 10:46: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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!