Top doanh nghiệp đã đăng ký cho nhân viên

Bạn sẽ học được gì?

Có được kiến thức toàn diện về ngôn ngữ lập trình Java
Có khả năng tiếp cận lập trình Android

Khoá học này sẽ có:

Video

18h 46m giờ học

Article

0 bài viết chuyên môn

Material

0 tài liệu đính kèm

Exam questions

0 đề thi ghi nhớ kiến thức

Nội dung khoá học

11 Chương . 91 bài giảng . 18h 46m giờ học

Mở rộng tất cả các phần

Giới thiệu ngôn ngữ lập trình Java

0 bài giảng • 1 giờ 5 phút

Mô tả khoá học

Java là một ngôn ngữ lập trình phổ biến. Điều này được chứng minh thực tế trong suốt 20 năm qua. Ngày nay cơ hội việc làm cho các lập trình viên Java luôn không ngừng rộng mở, tạo cơ hội cực kì lớn cho những ai đã và đang đi theo con đường lập trình.  Một trong những lý do hàng đầu mà bạn nên học ngôn ngữ lập trình Java đó là vì Java thuộc loại ngôn ngữ lập trình rất dễ tìm hiểu. Với cú pháp rõ ràng có đi kèm chú thích nhỏ, việc đọc và học ngôn ngữ lập trình Java có thể trở nên dễ dàng và thuận tiện hơn. Chỉ cần bạn tập làm quen với những bước đầu, như cách cài đặt JDK và thiết lập PATH, hiểu cách thức hoạt động của Classpath thì không lâu sau việc học Java của bạn có thể dễ thở hơn rất nhiều.

Khóa học cung cấp trọn bộ kiến thức lập trình Java, đồng thời cung cấp kiến thức để tiếp cận lập trình Android, có khả năng tiếp tục phát triển phần mềm Java nâng cao: Swing, Kết nối cơ sở dữ liệu,...
Tìm hiểu cơ bản về ngôn ngữ lập trình Java (Từ định nghĩa đến kiểu dữ liệu, biến, câu lệnh, mảng, chuỗi ... cấu trúc điều khiển trong java, phương thức, lớp....)

Giảng viên:

TS. Trần Duy Thanh Giảng viên

Giảng Viên

TS. Trần Duy Thanh
  • 5 điểm đánh giá

  • 3 đánh giá

  • 122 học viên

  • 11 khóa học

Học viên cũng mua

Học AppSheet Tip & Tricks
15 bài giảng
5
646
299,000 đ
499,000 đ
Học AppSheet Tip & Tricks
VBAG02 - Ứng dụng Mảng, SQL và các Công cụ Nâng cao khác trong Excel và VBA
111 bài giảng
4.25
496
499,000 đ
999,000 đ
VBAG02 - Ứng dụng Mảng, SQL và các Công cụ Nâng cao khác trong Excel và VBA
CG01 - Lập trình C# cơ bản cho Excel
25 bài giảng
3
99
399,000 đ
799,000 đ
CG01 - Lập trình C# cơ bản cho Excel

Hỏi đáp khóa học

0 thảo luận

Thảo luận về bài học

3 thảo luận

Huỳnh Tấn Phát

Huỳnh Tấn Phát

Ví dụ: Thầy đã dạy xóa khoảng trắng 02 bên bằng hàng TRIM và cách xóa khoảng trắng bên trái, bên phải.

Em ví dụ:   “Tôi      đang     học cơ bản java” ==> Em muốn chỉnh lại cho đẹp là chỉnh sửa lại câu này chỉ còn 01 khoảng trắng giữa các chữ.

Em xin cảm ơn quý giảng viên ạ!

TS. Trần Duy Thanh

TS. Trần Duy Thanh [Giảng viên]

Hi Em

Có nhiều cách làm lắm.

1.Cách nội công cao: Tìm từ khóa regular expression to remove white with a single space in java

Ví dụ:

public static void main(String[] args) 

String text = "Hello                        World               Java."; 

String result = text.replaceAll("\\s+", " "); 

System.out.println(result); 


2.Cách áp dụng các vòng lặp, xử lý chuỗi: Tách chuỗi theo khoảng trắng ta được mảng các chuỗi, nối các chuỗi lại với 1 khoảng trắng

Thầy Thanh

{"id":14024,"crm_contact_id":114042,"name":"TS. Tr\u1ea7n Duy Thanh","email":"duythanhcse@gmail.com","status":1,"refresh_login":0,"password_reset":1,"last_update_password":"2018-09-14 11:09:46","confirmation_code":"0930df98b208bd2d030ba3db35d161b6","confirmed":1,"session_id":null,"enable_api":0,"access_key":null,"created_at":"2018-05-28T04:40:27.000000Z","updated_at":"2024-04-19T15:56:42.000000Z","deleted_at":null,"unit_name":"Tr\u01b0\u1eddng \u0110\u1ea1i H\u1ecdc Kinh T\u1ebf - Lu\u1eadt, \u0110HQG TP.HCM","grade":0,"avatar_disk":"public","avatar_path":"users\/1652756291.jpg","gender":0,"birthday":"1983-12-20 00:00:00","position":"Gi\u1ea3ng Vi\u00ean","achievement":"<div class=\"col-md-12\" style=\"width: 908px; text-align: justify; min-height: 1px; float: left; color: rgb(51, 51, 51);\"><h3 style=\"margin-top: 20px; margin-bottom: 10px; line-height: 1.1; font-size: 24px; color: inherit;\"><br><\/h3><table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" class=\"MsoNormalTable\" style=\"border-spacing: 0px; background-color: transparent; border-width: medium; border-style: none; border-color: initial; width: 685px;\"><tbody><tr><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; height: 39.75pt; width: 23.35pt;\"><p style=\"margin-right: -5.4pt; margin-bottom: 10px; margin-left: -9pt; line-height: 16px; text-align: center; color: rgb(51, 77, 110) !important;\"><span style=\"line-height: 16px; font-family: Arial; color: rgb(51, 77, 110) !important; font-size: 12px;\"><em>TT<\/em><\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; height: 39.75pt; width: 170.9pt;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; text-align: center; color: rgb(51, 77, 110) !important;\"><span style=\"line-height: 16px; font-family: Arial; color: rgb(51, 77, 110) !important; font-size: 12px;\"><em>T\u00ean \u0111\u1ec1 t\u00e0i\/d\u1ef1 \u00e1n<\/em><\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; height: 39.75pt; width: 58.5pt;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; text-align: center; color: rgb(51, 77, 110) !important;\"><span style=\"line-height: 16px; font-family: Arial; color: rgb(51, 77, 110) !important; font-size: 12px;\"><em>M\u00e3 s\u1ed1 &amp;<\/em><\/span><\/p><p style=\"margin-right: -5.4pt; margin-bottom: 10px; margin-left: -6.5pt; line-height: 16px; text-align: center; color: rgb(51, 77, 110) !important;\"><span style=\"line-height: 16px; font-family: Arial; color: rgb(51, 77, 110) !important; font-size: 12px;\"><em>c\u1ea5p qu\u1ea3n l\u00fd<\/em><\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; height: 39.75pt; width: 67.5pt;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; text-align: center; color: rgb(51, 77, 110) !important;\"><span style=\"line-height: 16px; font-family: Arial; color: rgb(51, 77, 110) !important; font-size: 12px;\"><em>Th\u1eddi gian th\u1ef1c hi\u1ec7n<\/em><\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; height: 39.75pt; width: 58.5pt;\"><p style=\"margin-right: -5.4pt; margin-bottom: 10px; margin-left: -5.4pt; line-height: 16px; text-align: center; color: rgb(51, 77, 110) !important;\"><span style=\"line-height: 16px; font-family: Arial; color: rgb(51, 77, 110) !important; font-size: 12px;\"><em>Ch\u1ee7 nhi\u1ec7m<\/em><\/span><\/p><p style=\"margin-right: -5.4pt; margin-bottom: 10px; margin-left: -5.4pt; line-height: 16px; text-align: center; color: rgb(51, 77, 110) !important;\"><span style=\"line-height: 16px; font-family: Arial; color: rgb(51, 77, 110) !important; font-size: 12px;\"><em>\/Tham gia<\/em><\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; height: 39.75pt; vertical-align: top; width: 81pt;\"><p style=\"margin-right: -3.3pt; margin-bottom: 10px; margin-left: -4.3pt; line-height: 16px; text-align: center; color: rgb(51, 77, 110) !important;\"><span style=\"line-height: 16px; font-family: Arial; color: rgb(51, 77, 110) !important; font-size: 12px;\"><em>Ng\u00e0y nghi\u1ec7m thu<\/em><\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; height: 39.75pt; width: 0.75in;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; text-align: center; color: rgb(51, 77, 110) !important;\"><span style=\"line-height: 16px; font-family: Arial; color: rgb(51, 77, 110) !important; font-size: 12px;\"><em>K\u1ebft qu\u1ea3<\/em><\/span><\/p><\/td><\/tr><tr><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 23.35pt;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; text-align: center; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">1<\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 170.9pt;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">X\u00e2y d\u1ef1ng h\u1ec7 th\u1ed1ng ph\u00e2n t\u00edch m\u1ea1ng x\u00e3 h\u1ed9i theo ch\u1ee7 \u0111\u1ec1 v\u00e0 \u1ee9ng d\u1ee5ng v\u00e0o m\u1ea1ng x\u00e3 h\u1ed9i trong tr\u01b0\u1eddng \u0111\u1ea1i h\u1ecdc.<\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 58.5pt;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">\u0110HQG \u2013 Lo\u1ea1i B<\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 67.5pt;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial;\"><a href=\"tel:06\/2013 %E2%80%93 06\" style=\"color: rgb(51, 122, 183);\"><span style=\"font-size: 12px;\">06\/2013 \u2013 06<\/span><\/a><span style=\"font-size: 12px;\">\/2015<\/span><\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 58.5pt;\"><p style=\"margin-right: -5.4pt; margin-bottom: 10px; margin-left: 0in; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">Tham gia<\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 81pt;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">Th\u00e1ng 10\/2015<\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 0.75in;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">T\u1ed1t&nbsp;<\/span><\/p><\/td><\/tr><tr><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 23.35pt;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; text-align: center; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">2<\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 170.9pt;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">Ph\u00e1t tri\u1ec3n h\u1ec7 th\u1ed1ng qu\u1ea3n tr\u1ecb m\u1ed1i quan h\u1ec7 kh\u00e1ch h\u00e0ng \u0111i\u1ec7n t\u1eed tr\u00ean n\u1ec1n t\u1ea3ng di \u0111\u1ed9ng<\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 58.5pt;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">\u0110\u1ec1 t\u00e0i c\u1ea5p C\u01a1 s\u1edf<\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 67.5pt;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">02\/2017<\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 58.5pt;\"><p style=\"margin-right: -5.4pt; margin-bottom: 10px; margin-left: 0in; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">Ch\u1ee7 nhi\u1ec7m<\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 81pt;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">16\/10\/2018<\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 0.75in;\"><p style=\"margin-right: 0in; margin-bottom: 10px; margin-left: 0in; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">T\u1ed1t<\/span><\/p><\/td><\/tr><tr><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; text-align: center; width: 23.35pt;\"><span style=\"font-family: Arial; font-size: 12px;\">3<\/span><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 170.9pt;\"><span style=\"font-family: Arial; font-size: 12px;\">X\u00e2y d\u1ef1ng th\u1ecb tr\u01b0\u1eddng \u0111i\u1ec7n t\u1eed m\u00f4 ph\u1ecfng cho \u0111\u00e0o t\u1ea1o v\u00e0 nghi\u00ean c\u1ee9u th\u01b0\u01a1ng m\u1ea1i \u0111i\u1ec7n t\u1eed<\/span><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 58.5pt;\"><span style=\"font-family: Arial; font-size: 12px;\">\u0110HQG \u2013 Lo\u1ea1i C<\/span><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 67.5pt;\"><p style=\"margin-right: 0px; margin-bottom: 10px; margin-left: 0px; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">04\/2017<\/span><\/p><p style=\"margin-right: 0px; margin-bottom: 10px; margin-left: 0px; line-height: 16px; color: rgb(51, 77, 110) !important;\"><span style=\"font-family: Arial; font-size: 12px;\">04\/2019<\/span><\/p><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 58.5pt;\"><span style=\"font-family: Arial; font-size: 12px;\">Tham gia<\/span><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 81pt;\"><span style=\"font-family: Arial; font-size: 12px;\">26\/04\/2019<\/span><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 0.75in;\"><span style=\"font-family: Arial; font-size: 12px;\">t\u1ed1t<\/span><\/td><\/tr><tr><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; text-align: center; width: 23.35pt;\"><span style=\"font-family: Arial; font-size: 12px;\">4<\/span><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 170.9pt;\"><span style=\"font-family: Arial; font-size: 12px;\">Kh\u00e1m ph\u00e1 v\u00e0 tr\u1ef1c quan ho\u00e1 c\u1ed9ng \u0111\u1ed3ng ng\u01b0\u1eddi d\u00f9ng tr\u00ean m\u1ea1ng x\u00e3 h\u1ed9i s\u1eed d\u1ee5ng ph\u01b0\u01a1ng ph\u00e1p m\u1ea1ng n\u01a1ron Kohonen v\u00e0 m\u00f4 h\u00ecnh ch\u1ee7 \u0111\u1ec1<\/span><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 58.5pt;\"><span style=\"font-family: Arial; font-size: 12px;\">\u0110\u1ec1 t\u00e0i c\u1ea5p C\u01a1 s\u1edf<\/span><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 67.5pt;\"><span style=\"font-family: Arial; font-size: 12px;\">04\/2018<\/span><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 58.5pt;\"><span style=\"font-family: Arial; font-size: 12px;\">Tham gia<\/span><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 81pt;\"><span style=\"font-family: Arial; font-size: 12px;\">26\/04\/2019<\/span><\/td><td style=\"padding-top: 0px; padding-bottom: 0px; background-color: transparent; width: 0.75in;\"><span style=\"font-family: Arial;\"><span style=\"font-size: 12px;\">t\u1ed1t<\/span><br><br><\/span><\/td><\/tr><\/tbody><\/table><\/div>","full_name":"Tr\u1ea7n Duy Thanh","address":"26\/15\/40 \u0111\u01b0\u1eddng 21, KP.Long H\u00f2a, P. Long Th\u1ea1nh M\u1ef9, TP. Th\u1ee7 \u0110\u1ee9c, Tp.HCM","status_text":"","user_type":"","social_facebook":"https:\/\/www.facebook.com\/tranduythanhcse\/","social_google":"","social_twitter":"","social_linkedin":"","cover_path":"","idvg_id":0,"facebook_id":0,"phone":"987773061","become_teacher":0,"primary_wallet":2872893,"secondary_wallet":0,"wallet_type":"","wallet_payment":"","loyalty_point":0,"google_id":"104037900191609007190","github_id":null,"twitter_id":null,"linkedin_id":null,"bitbucket_id":null,"access_token_onedrive":"","system_status":"pending","account_seeding":0,"path_cv":null,"enable_unsubcribe":0,"clap":0,"view":1061,"email_invalid":0,"type_email_invalid":null,"email_unsubcriber":0,"email_bounce":0,"email_compliant":0,"contract_business_name":"Tr\u1ea7n Duy Thanh","contract_number":"2226052\/H\u0110HTBQ\/GITIHO","contract_date":"2022-05-25T17:00:00.000000Z","contract_delegate":"Tr\u1ea7n Duy Thanh","contract_address":"26\/15\/40 \u0111\u01b0\u1eddng 21, KP.Long H\u00f2a, P. Long Th\u1ea1nh M\u1ef9, TP. Th\u1ee7 \u0110\u1ee9c, Tp.HCM","contract_account_number":"2020106016001","contract_bank":"MB Bank B\u1eafc S\u00e0i G\u00f2n","source":null,"login_mobile":0,"gitiho_user":1,"avatar":"https:\/\/gitiho.com\/caches\/ua_small\/users\/1652756291.jpg","link_profile":"https:\/\/gitiho.com\/teacher\/14024-ts-tran-duy-thanh","vip_account":null,"roles":[{"id":8,"biz_business_id":0,"name":"Teacher","display_name":"Teacher","guard_name":"web","created_at":"2022-11-30T09:06:55.000000Z","updated_at":"2022-11-30T09:06:55.000000Z","is_default":0,"pivot":{"model_id":14024,"role_id":8,"model_type":"App\\Models\\User"}}]}

TS. Trần Duy Thanh [Giảng viên]

String text = "Hello            World               Java."; 

399,000đ
© 2020 - Bản quyền của Công Ty Cổ Phần Công Nghệ Giáo Dục Gitiho Việt Nam
Giấy chứng nhận Đăng ký doanh nghiệp số: 0109077145, cấp bởi Sở Kế hoạch và Đầu tư TP. Hà Nội
Giấy phép mạng xã hội số: 588, cấp bởi Bộ Thông tin và Truyền thông
/