📅  最后修改于: 2022-03-11 14:52:41.756000             🧑  作者: Mango
import java.util.Base64;
class Base64Decode {
public static void main(String[] args) {
String b64 = "Z3VydQ==";
byte[] decoder = Base64.getDecoder().decode(b64);
String str = new String(decoder);
System.out.println(str); //-> "guru"
}
}