From: Robin Cheney Date: Fri, 28 Nov 2025 09:04:05 +0000 (+0100) Subject: forgot some javadoc X-Git-Url: https://git.eternal.ddnss.de/?a=commitdiff_plain;h=f6506a80deaad179c6b40d71b72fa64565a2678c;p=tankstelle.git forgot some javadoc --- diff --git a/src/main/java/de/diejungsvondertanke/tankstelle/Main.java b/src/main/java/de/diejungsvondertanke/tankstelle/Main.java index fe94c3c..a895b39 100644 --- a/src/main/java/de/diejungsvondertanke/tankstelle/Main.java +++ b/src/main/java/de/diejungsvondertanke/tankstelle/Main.java @@ -36,8 +36,8 @@ public class Main { /** * Launch GUI * - * @param args Program arguments from additionally passed parameters. Mandatory, - * but never used here. + * @param args Program arguments from additionally passed parameters. Mandatory + * to have, but never used here. */ public static void main(String[] args) { JFX.launch(args); @@ -357,6 +357,18 @@ public class Main { return sum; } + /** + * Get the cumulative price for the amount of fuel stored for every fuel station + * + * => What you would get if you would sell all fuel of eveery station at the + * current price(s) + * + * @return the income in € + * + * @author Robin Cheney + * + * @see FuelStation#get_cumulative_retail_price() + */ public static double get_cumulative_retail_price() { double sum = 0; for (FuelStation station : fuelStations) {