Tag:Another group
-
Analysis of common linux commands
tr NAME tr – translate or delete characters Characters from standard input can be replaced, compressed and deleted. It can change a group of characters into another group of characters, and is often used to write beautiful single line commands, which is very powerful. SYNOPSIS tr [OPTION]… SET1 [SET2] SET1 Specifies the original character set […]
-
Intercepting and replacing strings in SQL
//The field will be intercepted 0 to 5 bits, and the intercepted characters will have‘.’Replace with‘:’ SELECT replace(substr(‘field ‘, 0,5),’. ‘,’: ‘) from table name //Delete a character of the specified length and insert another set of characters (stuff) at the specified starting point Select stuff (‘abcdef ‘, 2, 3,’ ha ha ‘) – > […]
-
An example of converting a list into a map by custom grouping rules using java stream API
The complete test code is shown at the end of this paper. The test data is the four employee object instances in the list: Group by city of employees: The results were divided into three groups The first group of employees in Shanghai: The second group of employees in Chengdu: Count the number of employees […]