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
Số hoàn hảo là gì? Kiểm tra số hoàn hảo bằng Java

Số hoàn hảo là gì? Kiểm tra số hoàn hảo bằng Java

Số hoàn hảo là số có tổng các ước số của nó bằng chính nó. Ví dụ Số 6 là một số hoàn hảo vì tổng các ước số của nó bằng chính nó: 1 + 2 + 3 = 6.
Read more
No Comments
WeakHashMap tối ưu cho hệ thống cache

WeakHashMap tối ưu cho hệ thống cache

Giả sử chúng ta xây dựng một hệ thống cache hình ảnh, với key là tên hình ảnh và value là hình ảnh tương ứng. Trong hệ thống này việc sử dụng HashMap
Read more
No Comments

Cách tạo Sheet trong File Excel với Java

Để tạo một Sheet trong một file excel với Java, chúng ta có thể sử dụng thư viện Apache poi. Đầu tiên chúng ta cần thêm apache poi denepdency vào dự án maven.
Read more
No Comments
Mã hoá Base64 và giải mã trong Java

Mã hoá Base64 và giải mã trong Java

Ngoài việc sử dụng Java 8 để triển khai thì chúng ta sẽ tìm hiểu thêm một thư viện bên thứ 3 là Apache Commons cũng cho phép mã hoá và giải mã Base64.
Read more
No Comments
Cách tạo Read-only file trong Java

Cách tạo Read-only file trong Java

Để tạo một file read-only chúng ta có thể sử dụng setReadOnly() method trong File class. Nó trả về một giá trị boolean dùng để kiểm tra hoạt động có thành công hay không.
Read more
No Comments
Cách xem thời gian chỉnh sửa cuối cùng của một file trong Java

Cách xem thời gian chỉnh sửa cuối cùng của một file trong Java

BasicFileAttributes là một class được cung cấp bởi Java NIO dùng để lưu trữ các metadata của file như thời gian khởi tạo file, lần cuối truy cập, và lần cuối chỉnh sửa file.
Read more
No Comments
Cách xoá file, thư mục trong Java

Cách xoá file, thư mục trong Java

Cách này có ưu điểm lớn hơn so với cách trên khi nó tự động kiểm tra nếu có sự tồn tại của thư mục, file thì mới tiến hành xoá
Read more
No Comments
Viết chương trình tính chu vi và diện tích hình tròn

Viết chương trình tính chu vi và diện tích hình tròn

Trong bài viết ngắn này chúng ta sẽ cùng nhau tìm hiểu viết chương trình tính chu vi và diện tích hình tròn sử dụng ngôn ngữ là Java.
Read more
No Comments
Hướng dẫn sử dụng @EnableConfigurationProperties trong Spring

Hướng dẫn sử dụng @EnableConfigurationProperties trong Spring

Tuy nhiên nếu đang sử dụng Spring boot version 2.2 trở lên thì chúng ta không cần sử dụng @EnableConfigurationProperties vì mặc định spring boot đã hỗ trợ sẵn
Read more
No Comments
Hướng dẫn sử dụng @ConfigurationProperties trong spring boot

Hướng dẫn sử dụng @ConfigurationProperties trong spring boot

@ConfigurationProperties annotation cho phép truy xuất các thuộc tính được đặt trong các tệp cấu hình một cách tự động và mạnh mẽ. Trong bài viết này chúng ta sẽ cùng nhau tìm thêm nhiều khía cạnh về annotation này.
Read more
1 Comment

Posts navigation

Prev 1 … 14 15 16 17 18 19 20 … 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?