Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Java Basics

Header Image

  1. Variables and data types
    • Explore the world of Java variables and data types as we dive into declaring variables, learn about primitive and reference data types, and master the art of type conversion in this pirate-themed adventure.
  2. Operators and expressions
    • In this article, we explore various Java operators, including arithmetic, relational, logical, assignment, and the conditional (ternary) operator, to help you make decisions, perform calculations, and write more concise and efficient code in your Java programming adventures.
  3. Control structures (if, if-else, switch)
    • This article covers the essential control structures in Java, such as if, if-else, and switch statements, along with Boolean expressions, providin’ pirates with the tools they need to navigate through decision-makin’ waters in their Java code.
  4. Loops (for, while, do-while)
    • This article covers the fundamentals of Java loops, including for, while, and do-while loops, nested loops, and loop control statements like break and continue, all while incorporating a pirate-themed, humorous, and storytelling approach.
  5. Arrays and ArrayLists
    • This article explores the usage of Java arrays and ArrayLists, including declaring, initializing, accessing, modifying, and looping through them, all with a fun and engaging pirate-themed approach.
  6. Basic input and output
    • In this pirate-themed article, we explored the basics of Java input and output, covering reading input from the user, writing output to the console, and reading from and writing to files, all while maintaining a humorous and engaging tone.

Table of contents