current location:Home > Technical Articles > Java

  • Priority Queues
    Priority Queues
    Priority queues can be implemented using heaps. An ordinary queue is a first-in, first-out data structure. Elements are appended to the end of the queue and removed from the beginning. In a priority queue, elements are assigned with priorities. When
    javaTutorial 1023 2024-07-20 09:01:10
  • Bubble Sort
    Bubble Sort
    A bubble sort sorts the array in multiple phases. Each pass successively swaps the neighboring elements if the elements are not in order. The bubble sort algorithm makes several passes through the array. On each pass, successive neighboring pairs are
    javaTutorial 477 2024-07-20 02:51:09
  • LeetCode DayDynamic Programming
    LeetCode DayDynamic Programming
    198. House Robber You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security systems co
    javaTutorial 678 2024-07-19 17:41:52
  • Understanding Fall-Through in Java Switch-Case Statements
    Understanding Fall-Through in Java Switch-Case Statements
    In Java programming, the switch-case statement is a control structure used to execute one block of code among many based on the value of a variable. It can be more efficient and readable than using multiple if-else statements. One important concept t
    javaTutorial 443 2024-07-19 17:37:06
  • Examples: Determining Big O
    Examples: Determining Big O
    This section gives several examples of determining Big O for repetition, sequence, and selection statements. Example 1 Consider the time complexity for the following loop: for (int i = 1; i
    javaTutorial 725 2024-07-19 17:32:30
  • Authorization pitfalls: what does Keycloak cloak?
    Authorization pitfalls: what does Keycloak cloak?
    Author: Valerii Filatov User authorization and registration are important parts of any application, not only for users but also for security. What pitfalls does the source code of a popular open-source identity management solution hide? How do they
    javaTutorial 582 2024-07-19 17:25:20
  • Sorting
    Sorting
    Sorting algorithms are good examples for studying algorithm design and analysis. Sorting is a classic subject in computer science. There are three reasons to study sorting algorithms. First, sorting algorithms illustrate many creative approaches to
    javaTutorial 644 2024-07-19 14:39:58
  • Item Prefer references to methods over lambdas
    Item Prefer references to methods over lambdas
    Advantages of References for Methods Conciseness: References to methods are more concise than lambdas. Example: Increment value in a Map using merge: Lambda: (count, incr) -> count + incr Reference to method: Integer::sum B reduction
    javaTutorial 705 2024-07-19 14:02:39
  • Reflection on items and the book
    Reflection on items and the book
    Let's address the apparent contradiction between items 22 and 41 of the book: Item 22: “If you don't want to define a type, don't use an interface.” This item suggests that you shouldn't use interfaces for things that don't represent a real type or function.
    javaTutorial 1114 2024-07-19 13:46:08
  • LeetCode Day Dynamic Programming Part 10
    LeetCode Day Dynamic Programming Part 10
    300. Longest Increasing Subsequence Given an integer array nums, return the length of the longest strictly increasing subsequence . Example 1: Input: nums = [10,9,2,5,3,7,101,18] Output: 4 Explanation: The longest increasing subsequence is [
    javaTutorial 285 2024-07-19 13:07:01
  • New requestMatchers in Spring Security 6
    New requestMatchers in Spring Security 6
    In Spring Security 6, the requestMatchers methods have replaced the deprecated antMatchers, mvcMatchers, and regexMatchers methods for configuring path-based access control. Here are the key points about the new requestMatchers: Use request
    javaTutorial 720 2024-07-19 12:18:31
  • Bodiless loops in Java
    Bodiless loops in Java
    Concept In Java, a loop may not have an associated body because a null statement is syntactically valid. Utility Bodily loops can be used for operations that are completely handled in the loop expression. -Example of loop without co
    javaTutorial 595 2024-07-19 04:26:50
  • Method security with @Secured Annotation in Spring
    Method security with @Secured Annotation in Spring
    This annotation provides a way to add security configuration to business methods. It will use roles to check if a user has permission to call this method. The annotation is part of spring security. So to enable its usage you need the spring security
    javaTutorial 698 2024-07-19 02:37:10
  • What is DTO? Why use?
    What is DTO? Why use?
    Hello everyone, I'm Jean and I'm here to bring you an article about DTO. This is just theory, and there will be no practical code. I hope you enjoy it! Introduction DTO, or "Data Transfer Object," as the name suggests, is an obj
    javaTutorial 574 2024-07-19 00:56:23
  • Pattern Matching for Switch in Java 21
    Pattern Matching for Switch in Java 21
    Pattern matching has been a highly anticipated feature in Java, bringing more power and flexibility to the language. Java 21 introduces pattern matching for switch statements, which simplifies the code and reduces boilerplate. Let's explore how this
    javaTutorial 323 2024-07-19 00: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!