且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Java中,我可以合并两个类似的函数,其中使用JspWriter和其他PrintWriter?

更新时间:2023-12-04 12:05:22

这可能会奏效:

public void formatNameAndAddress(JspWriter out) throws java.io.IOException {
    formatNameAndAddress(new PrintWriter(out));
}