public class Test {
    public static void main(String[] args) {
        String url = "https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s&lang=zh_CN";
        System.out.println(String.format(url,"token32347384971","openid48093750375"));
    }
}

运行结果:

https://api.weixin.qq.com/sns/userinfo?access_token=token32347384971&openid=openid48093750375&lang=zh_CN