← Back to all work
GitHubLearning and foundations

Generic Maximum Finder

A Java maximum-value implementation using generics, Comparable, varargs, and JUnit.

STATUSHistorical learning project; current execution not revalidated in this review.
FOCUSLearning and foundations
DIAGRAM SCOPEWorkflow overview

THE PROBLEM

What it sets out
to solve.

Reuse one comparison pattern across compatible value types.

THE APPROACH

How it comes
together.

MaxNumber accepts generic values and compares them through Comparable, returning or printing the largest; tests cover example cases.

UNDER THE HOOD

Follow the workflow.

Trace the components.
Select a node for its role in the system.

Documented implementation workflow4 COMPONENTS
INTERACTIVE 3DGeneric Maximum Finder
JavaGenericsComparable
Move to tilt · Drag to rotate · Arrow keysDrag to rotate · Tap a component4 components · 3 connections
2D diagram
Trace connections 3 relationships
  1. Comparable valuesMaxNumber comparison
  2. MaxNumber comparisonMaximum result
  3. Maximum resultJUnit cases

Select a component to see how it fits into the system.

CAPABILITIES

What’s inside.

  • 01

    Comparable-based generic comparison

  • 02

    Variable argument input

  • 03

    Return and print maximum value

  • 04

    JUnit examples

Let’s build something useful.

Start a conversation ↗