All videos
16 September 2026

Java Assignment: Warehouse Stock Inventory with Reorder Alerts | KNUST Java | Code with Mortoti

A full walkthrough of the KNUST Java warehouse stock inventory assignment. Starting from six item stock levels, the video builds the logic step by step: looping through an array with a standard for loop, using if-else statements to flag any item under ten units as critically low, keeping a running total of stock across the warehouse, and counting how many items need reordering. The point isn't to copy the code ... it's to follow the reasoning behind each decision, so the same pattern can be reused on the next assignment. Good for KNUST IT Level 200 students, or anyone starting out with arrays, loops, and conditional logic in Java.