Xin chào tất cả các bạn độc giả của Lập Trình Không Khó, hôm nay mình muốn tâm sự với các bạn việc có nên học lập trình online tại hệ thống giáo dục online Unica. Mình đã từng tham gia nhiều khóa học online không chỉ về lập trình, do đó mình muốn đánh […]
#java
Lấy ngày giờ hiện tại trong Java
Cách lấy ngày giờ hiện tại trong Java như thế nào? Làm sao để lấy thời gian hiện tại trong Java? bài viết này Lập trình không khó sẽ đưa ra cho bạn một số cách khác nhau để lấy được thời gian hệ thống trong ngôn ngữ Java nhé. Lấy ngày giờ hiện tại […]
Toán tử instanceof trong java
Bài viết này mình sẽ giới thiệu đến các bạn toán tử instanceof trong java và cách sử dụng nó để nhận biết kiểu dữ liệu. Toán tử instanceof dùng để kiểm tra một đối tượng có phải là một thể hiện thuộc kiểu dữ liệu cụ thể hay không ( các lớp, interface…) Toán […]
Interface trong java
Ở bài trước chúng ta đã biết được cách sử dụng tính trừu tượng là kế thừa một lớp abstract. Hôm nay mình sẽ hướng dẫn các bạn cách sử dụng tính trừu tượng bằng cách kế thừa từ một interface trong java. Một interface trong java có tất cả các phương thức đều là […]
Từ khóa super trong java
Hôm trước mình đã giới thiệu đến các bạn từ khóa this rồi phải không nào ? Hôm nay chúng ta cùng tìm hiểu từ khóa super trong java nhé! Từ khóa super trong java dùng để tham chiếu trực tiếp đến đối tượng của lớp cha gần nhất. Tham chiếu trực tiếp đến biến […]