From f6506a80deaad179c6b40d71b72fa64565a2678c Mon Sep 17 00:00:00 2001 From: Robin Cheney Date: Fri, 28 Nov 2025 10:04:05 +0100 Subject: [PATCH] forgot some javadoc --- .../de/diejungsvondertanke/tankstelle/Main.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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) { -- 2.43.0