- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
HackerRank Java Date and Time Solution | findDay() with Calendar Class (Day 2 Tutorial)
earn how to convert any date to its day of the week in Java using Calendar.getInstance() — Day 2 of my Java HackerRank series. Fast, beginner-friendly, and ready for interviews!
Day 2 — Java HackerRank Challenge: findDay()
In this video we use Java's Calendar class to convert a date (MM DD YYYY) into the correct day of the week (in CAPITALS). Perfect for beginners and for HackerRank practice.
✅ Key points:
- Use Calendar.getInstance()
- Use calendar.set(year, month - 1, day) // important: month is 0-indexed
- calendar.get(Calendar.DAY_OF_WEEK) → map to string DAY
Sample:
Input: 08 05 2015
Output: WEDNESDAY
0:00 Intro to findDay Challenge
0:30 Setting Up Calendar
1:15 Handling 0-Indexed Months
2:00 Code Example & Output
3:00 Tips for HackerRank Submission
🔗 Watch Day 1: [link to Day 1]
🔔 Subscribe for daily Java problems and quick solutions!
Java date to day of week, HackerRank Java tutorial for beginners, coding interview prep, Calendar class example.
#Java #HackerRank #Programming #findDay #JavaTutorial
Видео HackerRank Java Date and Time Solution | findDay() with Calendar Class (Day 2 Tutorial) канала code_with_introvert
Day 2 — Java HackerRank Challenge: findDay()
In this video we use Java's Calendar class to convert a date (MM DD YYYY) into the correct day of the week (in CAPITALS). Perfect for beginners and for HackerRank practice.
✅ Key points:
- Use Calendar.getInstance()
- Use calendar.set(year, month - 1, day) // important: month is 0-indexed
- calendar.get(Calendar.DAY_OF_WEEK) → map to string DAY
Sample:
Input: 08 05 2015
Output: WEDNESDAY
0:00 Intro to findDay Challenge
0:30 Setting Up Calendar
1:15 Handling 0-Indexed Months
2:00 Code Example & Output
3:00 Tips for HackerRank Submission
🔗 Watch Day 1: [link to Day 1]
🔔 Subscribe for daily Java problems and quick solutions!
Java date to day of week, HackerRank Java tutorial for beginners, coding interview prep, Calendar class example.
#Java #HackerRank #Programming #findDay #JavaTutorial
Видео HackerRank Java Date and Time Solution | findDay() with Calendar Class (Day 2 Tutorial) канала code_with_introvert
advanced java coding bootcamp coding projects debugging java hackerrank challenge interview prep java java basics java coding java debugging java examples java exercises java for beginners java interview java programming java projects java refresher java tutorial javascript basics learn java learn to code programming basics programming exercises software development software engineer software engineering software testing system design
Комментарии отсутствуют
Информация о видео
8 августа 2025 г. 23:15:06
00:02:25
Другие видео канала




















