자바2 [Java] ParameterUtils 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667package xxx.xxx.common.web; import java.io.UnsupportedEncodingException;import java.net.URLEncoder;import javax.servlet.http.HttpServletRequest;import net.bogo.common.util.StringUtil; public class ParameterUtils { public static boolean isEmpty(HttpServletRequest request, S.. 2017. 11. 10. [Java] 접근제한자 12345678910111213141516171819202122public class AccessModifierSample { // private:이 클래스 내에서만 참조 가능 private String name; // public:모든 클래스에서 참조 가능 public String getName() { return this.name; } // protected:이 클래스 내 및 동일 패키지 내에서 참조 가능 // 다른 패키지는 서브 클래스만 참조 가능 protected void setName(String name) { this.name = name; } // 없음:이 클래스 내 및 같은 패키지 내에서 참조 가능 void printName() { System.out.println(this.name); }.. 2017. 1. 29. 이전 1 다음