Java’s new yield keyword makes it easier to provide a returned result from switch statements. We look at how it works and how it can help ensure we cover all possible cases.
Also find me here:
Baeldung Author
Alex Tighe
Alex Tighe is a senior software engineer. He has a wide range of experience developing software for everything from experimental neuroscience to NASA satellite image processing to global investment banking software. In his free time, he enjoys reading, traveling, and building Lego sets.
Here's what I've written (so far):
Baeldung on Java
- All
- Spring Boot (1)
- Java (1)
Loading Multiple YAML Configuration Files in Spring Boot
Filed under Spring Boot
Spring can load YML into memory for us, making it easy to inject data into our running application. We look at how to split that YML across multiple files, rather than keep it all in a single application.yml.
Baeldung on Linux
- All
- Processes (4)
- Files (3)
- Scripting (2)
- File Viewing (2)
- Administration (2)
- Filesystems (1)
- File Editing (1)
How To Split a Screen Session Vertically
Filed under Processes
Learn how to add a vertical split in a region in a GNU screen session.
Limiting the Output of grep
Filed under File Viewing
Learn how to limit the output of the grep command in Linux to isolate the text you’re looking for.
How to Clear Word Highlighting in Vim
Filed under File Viewing
We can search for text within vim and see highlighting for all occurrences. We look at a few ways to clear this highlight.
How to Clear Logs in Linux
Filed under Administration
Learn how to can clear logs and configure the system not to keep them around for too long.
How Do I Use mktemp?
Filed under Files
The mktemp command can help us create a temporary file or directory in the correct location on a Linux system. We look at how it works and some tips for using it.
How to Write Bash Variable Contents to a File
Filed under File Editing, Scripting
Learn multiple ways to write the contents of a Bash variable to a file in Linux.
Find the Total Size of All Files in a Directory
Filed under Filesystems
We may sometimes wish to calculate the size of directories in our filesystem. We explore how to use the du command to achieve some common use cases.
Exclude grep From ps Results
Filed under Processes
When we use grep to filter the results of ps, it often finds itself as well as the desired process. We discover a couple of tricks to avoid this happening.
How to Kill a Detached Screen Session
Filed under Processes
Learn how to kill a detached GNU screen session from the command line.
What is a .pid File?
Learn a common way to store the PID using a .pid file and an example of how you would use it
Guide to the Linux screen Command
Filed under Administration
Working with multiple terminals on Linux can get hard to manage, especially setting up the connections each time. The screen utility solves that for us.
Guide to the Linux wc Command
Filed under Files
Learn how to use wc to count lines, words, or even characters in a file.