I was browsing through some of the base Java objects when I found a section of code surrounded by a scan: {} block. The following code is from the toLowerCase()
It is a labeled block. where scan: is a label. It is commonly used when breaking/continue in case you have multiple loops.
In this case break scan; simply breaks outta the labeled block(scan) when executed.