|
You are here |
www.webupd8.org | ||
| | | | |
www.noobslab.com
|
|
| | | | | [AI summary] A guide on installing the Flattastic theme pack on Ubuntu and Linux Mint derivatives to customize desktop environments with various theme variants. | |
| | | | |
dairon.org
|
|
| | | | | A simple guide to set up a development environment for Golang on Ubuntu Linux. | |
| | | | |
www.junauza.com
|
|
| | | | | If you frequently write tutorials and manuals for helping other users, screen capture tools are something you can't do without. Be it cap... | |
| | | | |
konradreiche.com
|
|
| | | Since most of the Java code I wrote in the past was on Android I was not able to enjoy too many Java 8 features yet. Though recently I wrote a microservice in Java using Spring Boot where I could make full use of lambdas and functional interfaces. The following method, for instance, returns the sum of all transactions for a specified instance by traversing their children. @RequestMapping(value = "/transaction/sum/{id}", method = RequestMethod.GET) BigDecimal Sum sum(@PathVariable long id) { List transactions = new ArrayList<>(); Transaction current = repository.find(id); while (current != null) { transactions.add(current); current = current.getChild(); } return transactions.stream().map(t -> t.getAmount()) .reduce(BigDecimal.ZERO, BigDecimal::add); } As some... | ||