Skip to content

Commit a5180b0

Browse files
committed
fix(collections): 🐛 general translation
Refers: #10
1 parent 1fecf62 commit a5180b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ch08-java-collections.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[ch08-java-collections]]
22
== Java Collections
33

4-
As seções de *Expressões Lambda* e *Streams* já possuem bastante conteúdo sobre os tópicos dos objetivos deste capítulo, e as explicações em detalhes podem ser encontradas lá. Aqui serão apresentados apenas exemplos adicionais especificamente em coleções (__Collections__), pois alguns exemplos das outras seções utilizam outros tipos de __Streams__.
4+
The *Lambda Expressions* and *Streams* sections already contain plenty of content about the objectives of this chapter, and the detailed explanations can be found there. Here we will present only additional examples specifically in collections (_Collections_), as some examples from the other sections use other types of _Streams_.
55

66
include::book/08-java-collections/sections/01-diamond.asc[]
77
include::book/08-java-collections/sections/02-collections-lambda.asc[]

src/org/j6toj8/collections/improvements/Collections_ComputeIfPresent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public static void main(String[] args) {
1111
map.put("B", "B".hashCode());
1212

1313
System.out.println("Map before computeIfPresent: " + map);
14-
// k = chave; v = valor
14+
// k = key; v = value
1515
map.computeIfPresent("A", (k, v) -> k.hashCode() * v);
1616
map.computeIfPresent("B", (k, v) -> k.hashCode() * v);
1717
map.computeIfPresent("C", (k, v) -> k.hashCode() * v);

0 commit comments

Comments
 (0)