Java Scanner Class Explained in Bengali| Token, Tokenization & Delimiter | Part:2

Опубликовано: 06 Май 2026
на канале: Ajoy Debnath
65
8

Hi,
Hope you all are doing great! Let's learn SQL together. 🚀

📌 Chapters ❤
⏱️ (00:00) Introduction
⏱️ (01:05) Theory(Previous Day's Discussion)
⏱️ (04:49) Start Today's Discussion
⏱️ (10:27) Token, Tokenization & Delimiter
⏱️ (15:45) Split a string using a delimiter
⏱️ (24:05) Change the delimiter in the Scanner Class
⏱️ (27:33) Use Regex as a delimiter in the Scanner Class
⏱️ (31:35) Split a string using Regex
⏱️ (38:03) '+' in Regex
⏱️ (44:49) End Of Part: 2

📌 Join my Telegram for updates: https://t.me/contactajoydebnath
🔗 Visit my website for more tutorials: https://contactajoydebnath.com/
💬 Like, Comment, Share, and Subscribe for more tutorials!
🔔 Subscribe to my channel:    / @contactajoydebnath  
I appreciate your support! 🚀


🎥 Related Video Tutorials or Playlist:
📌Java Scanner Class Explained in Bengali | Part: 1
👉    • Java Scanner Class Explained in Bengali | ...  

📜 Additional Learning Resources:
📄 Scanner Class Notes & Documentation:
https://docs.google.com/document/d/1T...


🔗 Other Playlists & Tutorials:
📌 Core Java Playlist:    • Core Java  
📌 Scanner Class Playlist:    • Scanner Class | Bangla Tutorial  
📌 Spring Framework Playlist:    • Spring Framework  
📌 JDBC Tutorial Playlist:    • JDBC  
📌 SQL Tutorial Playlist:    • SQL | Bangla Tutorial  

🔗 Useful Links:
📌 Eclipse IDE Download: https://www.eclipse.org/downloads/pac...
📌 JDK (Java Development Kit): https://www.oracle.com/java/technolog...
📌 MySQL Installer: https://dev.mysql.com/downloads/insta...

📚 Scanner Class Overview:
Scanner Class in Java
The Scanner class in Java is part of the java.util package and is used to read input from various sources such as strings, files, and the keyboard. It is commonly used for reading user input in console-based applications.
(A console application is a type of program that runs in a text-based command-line interface.)

Properties:
Can read input from different sources like String, File, and User Input.

Can read different data types such as int, double, float, String, etc.

Supports regex-based tokenization.

User Input as Data Source (Default Keyboard)
In Java, System.in is an InputStream that is typically connected to the keyboard input or another input source specified by the host environment or user. It is often passed as an argument to the Scanner constructor to create a Scanner object that reads input from the standard input stream (usually the keyboard).

Token, Delimiter, and Changing the Delimiter
The Scanner class in Java reads input and tokenizes it by default.

Tokenization:
Tokenization means breaking the input into smaller parts (tokens) based on a delimiter.

A token is a sequence of characters that is treated as a single unit.

A delimiter is a character or sequence of characters used to separate or mark the boundaries between distinct parts of text or data.

Regular Expressions (Regex) and Delimiters:
In regular expressions (regex), the + symbol is a quantifier that means "one or more occurrences" of the preceding element.

Examples:
🔹 Matching Repeated Characters:
a+ matches "a", "aa", "aaa", etc.

🔹 Matching Repeated Groups:
(ab)+ matches "ab", "abab", "ababab", etc.

🔹 Matching Repeated Character Classes:
\d+ matches one or more digits (e.g., "1", "123", "4567").

#Java #JavaTutorial #JavaScanner #ScannerClass #JavaInput #JavaToken #JavaDelimiter #JavaBangla #BanglaProgramming #LearnJava #JavaForBeginners #JavaCoding #ProgrammingInBengali #JavaCourse #JavaExamples #BanglaTech#UserInputInJava

I appreciate your support! 🚀