Posts

Showing posts with the label StringTokenizer

Observability Done Right: Best Practices and Anti-Patterns for Effective System Monitoring

Image
  WHAT Observability is a concept that refers to the ability to gain insights into the behavior and performance of complex systems. In the context of software engineering, observability involves the collection, analysis, and visualization of data from software applications, infrastructure, and other components of a system. In the animal kingdom, observability plays a critical role in survival, allowing animals to monitor their surroundings, detect threats, and find food. Dolphins use echolocation to observe their surroundings. They emit high-frequency sounds that bounce off objects, allowing them to create a 3D map of their environment. Thanks for reading Knowledge Cafe! Subscribe for free to receive new posts and support my work. Subscribed WHY In today's era, architectures are becoming increasingly large, complex, and fast-paced due to the faster development and deployment of software by distributed teams with the help of DevOps, continuous delivery, and agile development methodo...

StringTokenizer

The processing of String often consists of parsing a formatted input string.  Parsing  is the division of text into a set of discrete parts, or  tokens,  which in a certain sequence can convey a semantic meaning. The  StringTokenizer  class provides the first step in this parsing process, often called the  lexer  (lexical analyzer) or  scanner .  StringTokenizer  implements the  Enumeration  interface. Therefore, given an input string, you can enumerate the individual tokens contained in it using  StringTokenizer . To use  StringTokenizer , you specify an input string and a string that contains delimiters.  Delimiters are characters that separate tokens. Each character in the delimiters string is considered a valid delimiter—for example,  ",;:"  sets the delimiters to a comma, semicolon, and colon. The default set of delimiters consists of the whitespace characters: space, tab, newline, and carriage return. StringTokenizer Example import java.util.*; class StringTokenizerDemo...