Decoding text

 avatar
user_9797333
java
a year ago
508 B
5
Indexable
import java.util.Base64;

public class Decoder {
    public static void main(String[] args) {
        // The encoded string to decode
        String encodedString = "SGVsbG8gV29ybGQh";

        // Decode the string
        byte[] decodedBytes = Base64.getDecoder().decode(encodedString);

        // Convert the decoded bytes back to a string
        String decodedString = new String(decodedBytes);

        // Print the decoded string
        System.out.println("Decoded string: " + decodedString);
    }
}
Editor is loading...