HexLibraryHexLibrary
</> HexCodeSign inSign up
PythonJavaScriptTypeScriptCC++JavaPHPGoRustRubyBashSQLLuaPerlCOBOLPascalDelphiFortranDartSwiftC#JuliaGroovyRElixirHaskellKotlinScalaClassic ASPClipperMS-DOS
LESSONS
Introduction to JavaVariablesData TypesOperatorsStringsArraysLists (ArrayList)Conditions (if / switch)Loops (for / while)MethodsClasses (OOP)
REFERENCE
📖 Overview
🖥️ Output
📦 Variables
🔢 Numbers & Math
✍️ String
📋 Array & List
🔁 Condition & Loop
🧩 Method & Class
Java›REFERENCE

Java — Command Reference

Java's most used commands — the standard for enterprise software. Each example is a complete program (public class Main). Each with an explanation and a working example.

7 categories · 21 commands

🖥️

Output

Printing to the screen and formatting.

System.out.println()System.out.printf()String.format()
3 commands →
📦

Variables

Typed variables and constants.

Typed variablefinal (constant)var (type inference)
3 commands →
🔢

Numbers & Math

Arithmetic and the Math class.

Arithmetic ( + - * / % )Math.sqrt / pow / max / abs
2 commands →
✍️

String

String methods.

length()toUpperCase() / toLowerCase()substring()split() / contains()
4 commands →
📋

Array & List

Fixed arrays and flexible ArrayList.

Array ( type[] )ArrayList
2 commands →
🔁

Condition & Loop

Decision making and repetition.

if / elseswitchforfor-each ( : )+1
5 commands →
🧩

Method & Class

Method definition and classes (OOP).

Method (static)class / constructor
2 commands →
HexLibraryHexLibrary

Learn programming more clearly. Every command is explained line by line with colors, reinforced with runnable exercises, test your code instantly — all in one place, free.

Learn

  • Home
  • Languages & Lessons
  • HexCode

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Use

Other Projects

  • HexToolz
  • Free Service Manuals
© 2026 HexLibrary · The clearest way to learn code