面向过程转向面向对象的思考(1) 以前一直用面向过程的思路去设计程序,那时一直面向过程可以为所欲为,为什么还要推出面向对象呢。 关于这个问题,接下来从我的java实践项目中去一步一步探讨这个问题。 &n
public static String getUrlInfo(String url_path) { String result = ""; URL url = null; try { url = new URL(url_path); } catch (Malfor
//md5加密方法 public static String getMD5(String string) { byte[] source = null; try { source = string.getBytes("utf-8"); } catch (Unsupported
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号