@@ -82,54 +82,54 @@ include::{section-java-package}/stringinswitch/StringInSwitch_ConstantOnly.java[
8282
8383These are the switch rules. You probably already know some about previous versions of Java, but now you have seen them in `switch` that use Strings. This was not possible before Java 7.
8484
85- ==== Literais Binários e Numéricos, incluindo underscore( _ )
85+ ==== Binary and numeric literals, including underscores in literals
8686
87- É esperado que o candidato saiba compreender e analisar o uso de literais binários e numéricos, como no seguinte exemplo .
87+ The candidate is expected to understand and analyze the use of binary and numeric literals, as in the following example .
8888
8989[source,java,indent=0]
9090.{java-package}/literals/Literals_Complete.java
9191----
9292include::{section-java-package}/literals/Literals_Complete.java[tag=code]
9393----
9494
95- Apesar da certificação ter foco nas atualizações trazidas pelo Java 7 e 8, é esperado que o candidato entenda também conceitos de versões anteriores do Java. Por isso, serão apresentadas algumas regras que talvez você já conheça sobre literais .
95+ Although certification focuses on updates brought by Java 7 and 8, the candidate is expected to understand concepts from previous versions of Java as well. So here are some rules you may already know about literals .
9696
97- . No Java, _Literal_ é qualquer número escrito diretamente no código, como todos do exemplo acima.
97+ . In Java, _Literal_ is any number written directly in code, like the previous example.
9898
99- . Por padrão, o Java interpreta literais como `int`. Ou seja, se não houver um sufixo no número para mudar seu tipo, ele é um `int`.
99+ . By default, Java interprets literals as `int`. That is, if there is no suffix in the number to change its type, it is an `int`.
100100+
101101.{java-package}/literals/Literals_Suffix.java
102102[source,java,indent=0]
103103----
104104include::{section-java-package}/literals/Literals_Suffix.java[tag=code]
105105----
106106
107- . Por padrão, o Java interpreta literais como sendo decimais. Existem prefixos que mudam o sistema numérico do literal.
107+ . By default, Java interprets literals to be decimal. There are prefixes that change the numerical system of the literal.
108108+
109109.{java-package}/literals/Literals_Prefix.java
110110[source,java,indent=0]
111111----
112112include::{section-java-package}/literals/Literals_Prefix.java[tag=code]
113113----
114114
115- . A partir do Java 7, é possÃvel utilizar underscore (_) para separar visualmente um número. Isso não muda o valor do número, e serve apenas para tornar o código mais legÃvel .
115+ . Starting with Java 7, you can use underscore (_) to visually separate a number. This does not change the value of the number, and only serves to make the code more readable .
116116+
117117.{java-package}/literals/Literals_Underscore.java
118118[source,java,indent=0]
119119----
120120include::{section-java-package}/literals/Literals_Underscore.java[tag=code]
121121----
122122
123- .Referências
123+ .References
124124****
125125
126- .Strings em Switch
127- * Boyarsky, Jeanne; Selikoff, Scott. OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide (p. 598). Wiley. Edição do Kindle.
126+ .String in the switch statement
127+ * Boyarsky, Jeanne; Selikoff, Scott. OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide (p. 598). Wiley. Kindle Edition .
128128* https://docs.oracle.com/javase/8/docs/technotes/guides/language/strings-switch.html[Strings in switch Statements.] Java Documentation.
129129* https://dzone.com/articles/new-java-7-feature-string[New Java 7 Feature: String in Switch support.] DZone.
130130
131- .Literais
132- * Boyarsky, Jeanne; Selikoff, Scott. OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide (p. 597). Wiley. Edição do Kindle.
131+ .Literals
132+ * Boyarsky, Jeanne; Selikoff, Scott. OCP: Oracle Certified Professional Java SE 8 Programmer II Study Guide (p. 597). Wiley. Kindle Edition .
133133* https://pt.wikibooks.org/wiki/Java/Literais[Java/Literais.] Wikibooks.
134134
135135****
0 commit comments