/* This code is inspired by the exam in introduction to programming, * Fall 2001, question 2. * I represent a natural source of water, e.g. a spring or a lake. */ public class WaterSource { private String name; private double litersPrHour; public WaterSource(String name, double lph){ this.name = name; this.litersPrHour = lph; } public String getName(){ return name; } public double getLitersPrHour(){ return litersPrHour; } }