Learn how to split a String by whitespace characters, such as space, tab, or newline, using multiple approaches
Also find me here:
Baeldung Author
Tapan Avasthi
Tapan Avasthi is an experienced Senior Engineer with almost a decade of experience in backend development in the software industry. They have a solid inclination to automate the tedious parts of software development and possess an opinionated view on writing elegant, clean code regardless of the technology stack. Additionally, they have ample experience working with Java and Spring ecosystems and a working knowledge of advanced DevOps concepts.
Here's what I've written (so far):
Baeldung on Java
- All
- Reactive (3)
- Spring Boot (2)
- Networking (2)
- Logging (2)
- Java Array (2)
- Data (2)
- Testing (1)
- Spring WebFlux (1)
- Spring Web (1)
- Spring (1)
- NoSQL (1)
- Java String (1)
- Java Numbers (1)
- JSON (1)
- DevOps (1)
Enable and Disable Endpoints at Runtime With Spring Boot
Filed under Spring Boot
Learn to enable and disable endpoints at runtime in a Spring Boot application using a few popular libraries, such as Spring Cloud, Spring Actuator, and Apache’s Commons Configuration.
Guide to Resilience4j With Spring Boot
Filed under Spring Boot
Learn how to use the Resilience4j library with a simple Spring Boot application.
Guide to the Storage Engine in Apache Cassandra
Dive into the internals of the storage engine used by Apache Cassandra.
Guide to Check if Apache Kafka Server Is Running
Filed under Data
Learn a few strategies to determine if the Kafka server is running
Reading Flux Into a Single InputStream Using Spring Reactive WebClient
Filed under Reactive, Spring Web
Learn how to read Flux into a single InputStream
Load Testing Using Postman
Filed under Testing
Learn how to use Postman collections to perform simple load testing
Monitor the Consumer Lag in Apache Kafka
Learn how to find the consumer lag on a Kafka topic.
Baeldung on Linux
- All
- Text Processing (12)
- File Editing (12)
- Scripting (11)
- File Searching (10)
- Files (9)
- Web (6)
- Administration (5)
- Processes (3)
- File Viewing (2)
- Docker (2)
- File Permissions (1)
How to Pipe Data to cURL POST Requests
Filed under Web
Learn how to pipe data to cURL POST requests.
Guide to the nohup Command in Linux
Filed under Processes
Learn how to use the nohup command to ensure a process continues to run in the background in Linux.
How to Delete a File Using Vim
Filed under File Editing
Learn how to delete a file while inside a Vim session in Linux.
Guide to the pgrep Command
Filed under Administration, Processes
Learn how to use the pgrep command in Linux to search for running processes.
How to Open and Position Terminal in Vim
Filed under File Editing
Learn how to use a terminal inside a Vim session, opening and positioning as required.
How to Add New Columns to a CSV File
Filed under File Editing, Text Processing
Learn how to use Linux command line utilities to add new columns to a CSV file.
How to Check for Null Fields in a CSV File
Filed under File Searching
Learn how to search for rows with null fields in a CSV file in Linux.
How to Grep a Pattern Containing a Tab Character
Filed under File Searching
Explore multiple approaches to grep a pattern containing a tab character in Linux.
Deleting a Specific Column in a File Within Vim
Filed under File Editing
Learn how to delete a specific column in a file in Vim, visual block mode, group substitution, external command execution, and macro recording.
Baeldung on Kotlin
- All
- Kotlin Numbers (4)
- Kotlin Collections (4)
- Kotlin Strings (3)
- Kotlin Dates (3)
- Kotlin Arrays (3)
- Libraries (1)
- Kotlin Concurrency (1)
- Algorithms (1)
Guide to the HexFormat API
Filed under Kotlin Strings
Learn how to use the HexFormat API in Kotlin to parse and format hexadecimal values.
Guide to Reading YAML Content in Kotlin
Filed under Libraries
Learn how to read YAML content from a file in Kotlin using two popular libraries.
Guide to Merging Two Maps in Kotlin
Filed under Kotlin Collections
Learn how to combine the key-value pairs of two maps into a single one in Kotlin.
Check if a Number Can Be Expressed as Sum of Two Prime Numbers in Kotlin
Filed under Kotlin Numbers
Explore multiple approaches to checking if a number can be expressed as the sum of two prime numbers.
How to Calculate the Difference Between Two Time Periods in Kotlin
Filed under Kotlin Dates
Learn how to find the difference between two durations or time points in Kotlin.
How to Convert Milliseconds to Minutes and Seconds in Kotlin
Filed under Kotlin Dates
Learn how to convert between units of duration in Kotlin.
Removing an Entry From a Kotlin Map While Iterating Over It
Filed under Kotlin Collections
Learn how to remove a map entry using on a condition on the key during iteration.
Count the Number of Vowels and Consonants in a Sentence in Kotlin
Filed under Kotlin Strings
Learn different ways to count the number of vowels and consonants in a sentence in Kotlin.
Find Average of All Items in a List in Kotlin
Filed under Kotlin Collections
Learn several approaches, such as loops, extension functions, and sequences, to calculate the average of all items in a Kotlin list.
Baeldung on Ops
- All
- Git (9)
- DevOps (8)
- Kubernetes (3)
- Docker (3)
- Logging (2)
- Deployment Tools (2)
- Jenkins (1)
How to Get the Title of Pull Request in GitHub Actions?
Filed under Git
Learn multiple ways of getting the title of a pull request.
Create Pull Request With GitHub Actions
Filed under Git
Explore different ways to create a pull request using GitHub Actions, including the GitHub CLI, the REST API, and the peter-evans/create-pull-request action.
Guide to Getting the Commit Message in GitHub Actions
Learn how to get the commit message in GitHub actions.
Guide to Getting Commit SHA in GitHub Actions
Learn how to get the commit SHA in GitHub actions.
Guide to Getting Commit SHA in GitHub Actions
Learn how to get the commit SHA in GitHub actions.
How to Push Changes to a Repository from a GitLab CI Pipeline
Filed under Git
Learn how to push code changes to a GitLab repository.
Guide to Using GitLab CI to Run Tests Locally
Filed under DevOps
Learn how to speed up development by using GitLab CI to run tests locally and not on a remote build agent.
Guide to Using cURL in gitlab-ci.yml
Filed under Git
Learn how to use cURL commands to make HTTP requests in a GitLab CI pipeline.
Guide to Passing GitLab Artifacts to Another Stage
Filed under DevOps
Learn how to pass artifacts from one GitLab stage to another.