From a76d935fabca2b296ebd099e22f77a5d7d0cb3c1 Mon Sep 17 00:00:00 2001 From: 250405 <250405@localhost> Date: Thu, 12 Mar 2026 12:44:13 +0000 Subject: [PATCH] base feita --- .../botsencrypter/BotsEncrypter.java | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/mycompany/botsencrypter/BotsEncrypter.java b/src/main/java/com/mycompany/botsencrypter/BotsEncrypter.java index f6c5929..8afce9d 100644 --- a/src/main/java/com/mycompany/botsencrypter/BotsEncrypter.java +++ b/src/main/java/com/mycompany/botsencrypter/BotsEncrypter.java @@ -1,18 +1,35 @@ -/* - * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license - */ - package com.mycompany.botsencrypter; +import java.util.Scanner; + /** - * - * @author 250405 + * @author Bots!! */ public class BotsEncrypter { public static void main(String[] args) { - for (int i = 0; i < 10; i++) { - System.out.println("Olaaa!!"); + Scanner scn = new Scanner(System.in); + + boolean rodando = true; + + while(rodando == true){ + System.out.println("Selecione uma das opções:\n" + + "1- Encriptar\n" + + "2- Decodificar\n" + + "3- Sair"); + int opcaoS = scn.nextInt(); + scn.nextLine(); + switch(opcaoS){ + case 1 -> Encoder(); + case 2 -> Decoder(); + case 3 -> rodando = false; + } } } + private static String Encoder(){ + return "nada"; + } + private static String Decoder(){ + return "nada"; + } }