Deft Blog

Chia sẻ là cách tốt nhất để học
Menu
  • Tâm sự dev
  • Bản tin
  • Java
    • Học Java cơ bản qua ví dụ
    • Học Lập trình hướng đối tượng
    • Java Swing
    • UnitTest – JUnit 5
    • Lombok
    • Maven
    • Jackson – Json
  • Database
    • Hibernate
    • SQL – Structured Query Language
    • JDBC
  • JavaScript
  • Privacy Policy
  • Terms of Service
Structure client project

Ứng dụng Chat Java socket – Part 1

Trong bài viết này, chúng ta sẽ dựa theo đó mà phát triển ứng dụng tiếp, mục tiêu của kỳ này là chúng ta sẽ xây dựng các thành phần cơ bản của ứng dụng
Read more
No Comments
client socket java

Lập trình Socket với Java core

Trong phần này, chúng ta sẽ chia ứng dụng Chat ra thành 2 phần client và server. Server đóng vai trò là một máy chủ tập trung tiếp nhận các kết nối từ
Read more
No Comments
Tổng hợp các Functional Interface trong Java 8

Tổng hợp các Functional Interface trong Java 8

Có rất nhiều interface xuất hiện từ các phiên bản trước đều tuân thủ theo các nguyên tắc của functional interface ví dụ như Runnable và Callable interface.
Read more
No Comments
Ngắt vòng lặp forEach trong Java Stream

Ngắt vòng lặp forEach trong Java Stream

Ngắt Stream bằng cách custom Spliterator của Stream. Nếu các bạn đang sử dụng Java 9 trở đi thì vấn đề này sẽ được giải quyết nhanh gọn với takeWhile()
Read more
No Comments
Giới thiệu Spliterator trong Java

Giới thiệu Spliterator trong Java

Đây là method chính được sử dụng mỗi khi duyệt qua một phần tử trong dãy nối tiếp. tryAdvande() method nhận 1 Consumer làm tham số đầu vào, nó được sử
Read more
No Comments
Xoá tất cả các phần tử trùng lặp trong Java List

Xoá tất cả các phần tử trùng lặp trong Java List

Như vậy để xoá các phần tử trùng nhau trong Java trở nên khá đơn giản với Stream API, với distinct() method, cú pháp tường giúp tăng tính đọc hiểu code
Read more
No Comments
Sự khác nhau giữa map() và flatMap() Stream API

Sự khác nhau giữa map() và flatMap() Stream API

flatMap() để giúp chúng ta chuyển Optional lồng bên trong một Optional khác sang Optional cấu trúc phẳng, từ đó chúng ta có thể sử dụng map()
Read more
No Comments
Sử dụng Stream peek() sao cho đúng cách

Sử dụng Stream peek() sao cho đúng cách

các intermediate operation sẽ không thực hiện khi không được kết hợp với các terminal operation vì tụi nó sẽ nghỉ rằng "Tao tính toán xong cũng
Read more
No Comments
Lọc các phần tử trong collection với Stream Filter()

Lọc các phần tử trong collection với Stream Filter()

Tuy nhiên nhớ rằng filter() là một intermediate operation nên nó không thể đi lẽ loi một mình mà phải kết hợp với các terminal operation
Read more
No Comments
Hướng dẫn sử dụng Stream reduce

Hướng dẫn sử dụng Stream reduce

Khi một Stream thực thi trong chế động song song (Parallel), Java runtime sẽ tách Stream ban đầu thành nhiều substreams cùng thực thi
Read more
No Comments

Posts navigation

Prev 1 … 51 52 53 54 55 56 57 … 91 Next
Học lập trình online

Bài viết liên quan

  • Từ phiên bản Java 8 đến Java 17, có những thay đổi gì? (P1)

  • Phương pháp học lập trình web hiệu quả cho người mới bắt đầu

  • 7 cách để đảo ngược một List trong Java

  • Design pattern trong Java: Command

  • Design pattern trong Java: Facade

  • Design pattern trong Java: Singleton

  • Design pattern trong Java: Observer

  • Design pattern trong Java: Adapter

  • Design pattern trong Java: Abstract Factory

Deft Blog

Chia sẻ là cách tốt nhất để học

Tham gia thảo luận tại group

Trang web liên kết

Học lập trình
Code Convert
Baeldung

Comment gần đây

  • sdcsdc on Hàm trong java với ví dụ cụ thể
  • Nhat Minh on Code smell – Những lỗi thường gặp khi bắt đầu học lập trình(Set 1)
  • Tin Nguyen on Cách đặt biến môi trường JAVA_HOME trong windows 10
  • Tin Nguyen on Cách đặt biến môi trường JAVA_HOME trong windows 10
  • [email protected] on Code smell – Những lỗi thường gặp khi bắt đầu học lập trình(Set 1)
Copyright © 2025 Deft Blog
Privacy Policy - Terms of Service

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Read More

In case of sale of your personal information, you may opt out by using the link Do Not Sell My Personal Information

Accept Decline Cookie Settings
I consent to the use of following cookies:
Cookie Declaration About Cookies
Necessary (0) Marketing (0) Analytics (0) Preferences (0) Unclassified (0)
Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.
We do not use cookies of this type.
Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.
We do not use cookies of this type.
Analytics cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.
We do not use cookies of this type.
Preference cookies enable a website to remember information that changes the way the website behaves or looks, like your preferred language or the region that you are in.
We do not use cookies of this type.
Unclassified cookies are cookies that we are in the process of classifying, together with the providers of individual cookies.
We do not use cookies of this type.
Cookies are small text files that can be used by websites to make a user's experience more efficient. The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.
Cookie Settings

Do you really wish to opt-out?