Java Tokenizer and DOM Manipulation with JavaScript

April 13, 2026 | Daily Dev Log Java split "isn't" into two tokens today. That sentence sounds wrong. Here's why it's completely logical. HackerRank — Java Tokens: A token = a continuous sequence of letters (A–Z, a–z) A separator = any character that is NOT a letter So when Java hits the apostrophe in "isn't": → isn = first token → t  = second token The regex that handles all separators: s.split("[ !,?._'@]+"); Breaking it down: → [ ] groups all separator characters → + means one or more in a row → trim() prevents empty strings at the start → Empty check handles all-whitespace input Input: He is a good boy, isn't he? Tokens: He is a good boy isn t he = 10 tokens One concept that looks simple until you hit the edge cases. trim() and the empty string check are what separate a passing solution from a failing one. Also today — the Todo App left the console. Yesterday it was pure JavaScript in a terminal. Today it runs in the browser with: → querySelector to grab DOM elements → addEventListener for add button → createElement to build new list items → Event delegation to handle delete → CSS red delete button The same logic from yesterday. The same array concept. Just connected to a real UI now. That is what DOM manipulation means — taking logic you already know and connecting it to what users actually see. posting daily until I'm hired. Open to opportunities in: Web Development | Java | Data Analytics | Cloud Computing #OpenToWork #Java #JavaScript #DOM #WebDevelopment #BuildInPublic #100DaysOfCode

  • text

To view or add a comment, sign in

Explore content categories