Untitled

 avatar
user_9797333
plain_text
a month ago
560 B
2
Indexable
Never
import java.util.Base64;
import java.util.Scanner;

public class TextDecoder {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        
        System.out.println("Enter the text to decode:");
        String encodedText = scanner.nextLine();
        
        byte[] decodedBytes = Base64.getDecoder().decode(encodedText);
        String decodedText = new String(decodedBytes);
        
        System.out.println("Decoded text:");
        System.out.println(decodedText);
        
        scanner.close();
    }
}