Skip to content

Typos in various articles (multi-article typo only ticket) #263

Description

@willy-b

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/ ),

Image
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 sentence,

    Note that this method has several overloads to accomodate for the arrays of primitive types.

    "accomodate" should be "accommodate".

Image

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 sentence

    ElementType.TYPE can be applied to the declaration of a class, an abtract class, an interface, an annotation interface, an enumeration, or a record declaration.

    "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,

    The Java VM requires that the class you execute with it hase a main method at which to begin execution of your application.

    "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,

    This allows you to deicde when you want to debug.

    "deicde" should be "decide".

  • In the sentence,

    However, it can quickly get unmanagable in a more complicated program especally if you have multiple things to keep track of or a lot of loops.

    "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,

    Upon selecting a workspace, it will show a Welcome screen presenting you with mutliple options.

    "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 a Value

    "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

    You can invoke the launch configuration/debugger when you select Run main | Debug main code lense or from the Run and Debug activity panel.

    "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 ),

  • 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions