摘要:
如果我们想拷贝一个数组,我们可能会使用System.arraycopy()或者Arrays.copyof()两种方式。在这里,我们将使用一个比较简单的示例来阐述两者之间的区别。 首先先说System.arraycopy() 接下来是代码 int[] arr = {1,2,3,4,5}; int[] 阅读全文
摘要:
我们当中可能有很多人不知道如何获得jsp中的路径怎么获取 方法一: <a href ="test.jsp?p=fuck">跳转到test2</a> 方法二: <%String path = request.getContextPath();String basePath = request.getS 阅读全文