Hello dev.java team!
Thanks again for all the content. I have been reporting issues as a way to contribute back, and when I can I try to give deep feedback on various issues (like mismatched or missing links, non-compiling code, error cases in examples, conceptual issues if they are present which is rare, etc) with 1 ticket per page or tutorial series. However, even when I don't have the bandwidth to do such a deep review of a page when reporting anything, I often notice typos in articles. Thus I am opening this ticket to report simple spelling errors I identify across many articles where I don't have time (yet) to review the entire content of those articles deeply but am aware of typos.
(There were no AIs or LLMs used in finding or reporting these typos.)
In the latest version of https://dev.java/learn/language-basics/arrays/ (archived as is at http://web.archive.org/web/20260714060411/https://dev.java/learn/language-basics/arrays/ ),
String[] coffees = {
"Affogato", "Americano", "Cappuccino", "Corretto", "Cortado",
"Doppio", "Espresso", "Frappucino", "Freddo", "Lungo", "Macchiato",
"Marocchino", "Ristretto" };
var coffeesAsString = Arrays.toString(coffees)
IO.prinln(coffeesAsString);
the code box will not run for multiple reasons:
"Arrays.toString(coffees)" is missing an ending semicolon afterwards;
"IO.prinln" should be "IO.println" (there is a missing "t").
also,
"Frappucino" should be "Frappuccino" ( https://en.wikipedia.org/w/index.php?title=Frappuccino&oldid=1360238213 ).
In the latest version of https://dev.java/learn/pattern-matching/ (archived as is at https://web.archive.org/web/20260714011718/https://dev.java/learn/pattern-matching/ ) ,
-
In the sentence
The s pattern variable is available oustide of the if statement, as long as your code leaves the method from the if branch: either with a return, or by throwing an exception.
"oustide" should be "outside". Also this statement is unclear. The condition of the if is true if o is NOT an instanceof String, so the pattern variable is available if the condition is false; in the branch where the if is bypassed, not hitting the return (this is true because if the IF is bypassed it means o must have been a string, this would also be true if the return was replaced with throwing an exception).
-
In the sentence
For that, let us consider the folowing example.
"folowing" should be "following".
In the latest version of https://dev.java/learn/annotations/ (archived as is at https://web.archive.org/web/20260714032443/https://dev.java/learn/annotations/?nonce=1 ),
In the latest version of https://dev.java/learn/getting-started/ (archived as is at https://web.archive.org/web/20260714011832/https://dev.java/learn/getting-started/ ),
In the latest version of https://dev.java/learn/debugging/ (archived as is at https://web.archive.org/web/20260714060248/https://dev.java/learn/debugging/?nonce=1 ),
In the latest version of https://dev.java/learn/eclipse/ (archived as is at http://web.archive.org/web/20260714061649/https://dev.java/learn/eclipse/ ),
In the latest version of https://dev.java/learn/numbers-strings/numbers/ (archived as is at http://web.archive.org/web/20260714062520/https://dev.java/learn/numbers-strings/numbers/ ),
In the latest version of https://dev.java/learn/vscode-java/ (archived as is at https://web.archive.org/web/20260714011605/https://dev.java/learn/vscode-java/ )
In the latest version of https://dev.java/learn/lambdas/first-lambdas/ (archived as is at http://web.archive.org/web/20260714075742/https://dev.java/learn/lambdas/first-lambdas/?nonce=1 ),
- In the sentence,
So everytime you write a lambda,
you can call any method defined
on the interface this lamdba is implementing.
the 2nd time "lambda" is intended, it is spelled incorrectly.
That is on the 3rd line above "lamdba" should be "lambda" .
Thanks so much!
Hello dev.java team!
Thanks again for all the content. I have been reporting issues as a way to contribute back, and when I can I try to give deep feedback on various issues (like mismatched or missing links, non-compiling code, error cases in examples, conceptual issues if they are present which is rare, etc) with 1 ticket per page or tutorial series. However, even when I don't have the bandwidth to do such a deep review of a page when reporting anything, I often notice typos in articles. Thus I am opening this ticket to report simple spelling errors I identify across many articles where I don't have time (yet) to review the entire content of those articles deeply but am aware of typos.
(There were no AIs or LLMs used in finding or reporting these typos.)
In the latest version of https://dev.java/learn/language-basics/arrays/ (archived as is at http://web.archive.org/web/20260714060411/https://dev.java/learn/language-basics/arrays/ ),
"Frappucino" is written in the code examples and expected output; I think this should be Frappuccino ( https://en.wikipedia.org/w/index.php?title=Frappuccino&oldid=1360238213 )
In the example
the code box will not run for multiple reasons:
"Arrays.toString(coffees)" is missing an ending semicolon afterwards;
"IO.prinln" should be "IO.println" (there is a missing "t").
also,
"Frappucino" should be "Frappuccino" ( https://en.wikipedia.org/w/index.php?title=Frappuccino&oldid=1360238213 ).
In the sentence,
"accomodate" should be "accommodate".
In the latest version of https://dev.java/learn/pattern-matching/ (archived as is at https://web.archive.org/web/20260714011718/https://dev.java/learn/pattern-matching/ ) ,
In the sentence
"oustide" should be "outside". Also this statement is unclear. The condition of the if is true if o is NOT an instanceof String, so the pattern variable is available if the condition is false; in the branch where the if is bypassed, not hitting the return (this is true because if the IF is bypassed it means o must have been a string, this would also be true if the return was replaced with throwing an exception).
In the sentence
"folowing" should be "following".
In the latest version of https://dev.java/learn/annotations/ (archived as is at https://web.archive.org/web/20260714032443/https://dev.java/learn/annotations/?nonce=1 ),
In the sentence
"an abtract class" should be an abstract class.
In the latest version of https://dev.java/learn/getting-started/ (archived as is at https://web.archive.org/web/20260714011832/https://dev.java/learn/getting-started/ ),
In the sentence,
"hase" should be "has". (Note that as of https://openjdk.org/jeps/512 simple programs can be written with a standalone "void main() {}" with no explicitly declared class.)
In the latest version of https://dev.java/learn/debugging/ (archived as is at https://web.archive.org/web/20260714060248/https://dev.java/learn/debugging/?nonce=1 ),
In the sentence,
"deicde" should be "decide".
In the sentence,
"especally" should be "especially".
In the latest version of https://dev.java/learn/eclipse/ (archived as is at http://web.archive.org/web/20260714061649/https://dev.java/learn/eclipse/ ),
In the sentence,
"mutliple" should be "multiple".
In the latest version of https://dev.java/learn/numbers-strings/numbers/ (archived as is at http://web.archive.org/web/20260714062520/https://dev.java/learn/numbers-strings/numbers/ ),
In the heading
"Rouding" should be "Rounding".
In the latest version of https://dev.java/learn/vscode-java/ (archived as is at https://web.archive.org/web/20260714011605/https://dev.java/learn/vscode-java/ )
In the sentence
"lense" should be "lens".
In the latest version of https://dev.java/learn/lambdas/first-lambdas/ (archived as is at http://web.archive.org/web/20260714075742/https://dev.java/learn/lambdas/first-lambdas/?nonce=1 ),
the 2nd time "lambda" is intended, it is spelled incorrectly.
That is on the 3rd line above "lamdba" should be "lambda" .
Thanks so much!