public class TestArrayValue
{
public static void main (String args[]){
int[] arr1 = { 1, 2, 3, 4, 5};
int[] arr2 = {1, 2, 3, 4, 5};
int[] tmp = arr1; System.out.println(arr1 == tmp);
System.out.println(arr2 == tmp);
System.out.println(arr1 == arr2);
}
}
{
public static void main (String args[]){
int[] arr1 = { 1, 2, 3, 4, 5};
int[] arr2 = {1, 2, 3, 4, 5};
int[] tmp = arr1; System.out.println(arr1 == tmp);
System.out.println(arr2 == tmp);
System.out.println(arr1 == arr2);
}
}
解决方案 »
- struts2 HTTP ERROR: 503 Service Unavailable 错误
- 关于SSH中包的问题
- struts1中调用validator出现的问题
- struts2 <s:if>传值比较的问题o(╯□╰)oo(╯□╰)oo(╯□╰)oo(╯□╰)oo(╯□╰)o
- 采用spring注解后如何注入bean问题
- jsp 调用web service: Could not invoke service
- hibernate一多对关系查询
- 关于spring4.0 mvc的测试
- ibatis与存储过程
- 关于j2eetutorial里面的一个小例子,不知什么地方有问题?
- 哥们,看看,sql_xml.jsp(2,5) Invalid standard action
- 在线等,一个小的查询问题。谢谢
import java.util.Scanner;
import java.util.Arrays;
你加上再试下