Skip to content

zhenzhis/java-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Learning Journal

Java exercises from a CNPI introductory course (2021). Each folder in src/ corresponds to a concept chapter; matching exercise PDFs are in docs/.

Structure

src/
├── 01_basics/      — Type conversions, arithmetic, modulo (Test.java)
├── 02_geometry/    — Rectangle class, overloaded constructors, side-swapping (ex-C)
├── 03_objects/     — Calculator, Voiture (car), Compte (bank account), TestExam
├── 04_logic/       — Price range validation, Math utilities, logical operators (ex-H)
└── 05_cistern/     — Water cistern: CisternDraft (first attempt) → Cistern (corrected)

notes/              — Raw syntax snippets (not compilable, kept as learning notes)
docs/               — Course PDFs and exercise sheets

Compile & Run

# Compile a single file (from its directory)
cd src/01_basics
javac Test.java
java Test

# Or from the project root, specifying the path
javac src/01_basics/Test.java
java -cp src/01_basics Test

Requires JDK 21+.

About

2026 - Current

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages