Untitled
user_9797333
plain_text
2 years ago
560 B
11
Indexable
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();
}
}Editor is loading...