How yahyasystementor/greenest works
This is a small Java console program for looking up a plant and displaying its name, calculated watering amount, and liquid type. The main workflow reads a user response, handles the Laura entry by using a Palm instance, and prints the result; other responses receive simple placeholder output or a not-found message. The model consists of shared plant name and height data, palm-specific amount calculation, and a liquid-type enum. The graph reflects only the four sampled source files.
Main entry points: Main.java Console Main · Palm.java Palm · Plant.java Plant · LiquidType.java Liquid Type
Components 5
Other components
- User
- Console Main
src/Main.java - Palm
src/Palm.java - Plant
src/Plant.java - Liquid Type
src/LiquidType.java
Connections 6
- User → Console Main: enters response
src/Main.java - Console Main → Palm: creates and queries
src/Main.java - Console Main → Plant: calls inherited getter
src/Main.java - Console Main → Liquid Type: prints constant
src/Main.java - Palm → Plant: extends and reads height
src/Palm.java - Palm → Liquid Type: returns type
src/Palm.java