Added Javadoc and instructions for contribution

This commit is contained in:
Cametendo
2026-04-24 11:20:25 +02:00
parent cb9b464a99
commit 5dc7d88b7f
12 changed files with 431 additions and 0 deletions

View File

@@ -2,7 +2,25 @@ package org.cametendo;
import java.util.Scanner;
/**
* Handles the initial greeting and user confirmation for the cflash application.
*
* <p>This class provides a welcome message and prompts the user to confirm
* whether they want to proceed with flashing an image to a storage device.</p>
*
* @author Cametendo
* @version 1.0
*/
public class Greeting {
/**
* Displays a welcome message and prompts for user confirmation.
*
* <p>Shows the cflash welcome message and asks the user if they want to
* flash an image. If the user declines, exits the application.</p>
*
* @param UserInput Scanner object for reading user confirmation
*/
public static void greeting(Scanner UserInput) {
System.out.println("Welcome to cflash!");
System.out.println("Would you like to flash an image (Y/n)");