Decoding text
user_9797333
java
2 years ago
508 B
19
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...