等于测试作业 [英] Equals testing homework

查看:80
本文介绍了等于测试作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

int[ ] a=[1,2,3]; 
object o="123"; 
string t="12"; 
string w=t+"3"; 
Boolean b=o.equals(a); 
Boolean b1=o.equals(t); 
Boolean b2=o.equals(w); 
Boolean b3=(o==w ); 



代码如何到达b,b1,b2和b3中的结果?问题有点说明了一切.这显然是家庭作业,因此如果您不了解他们提供的课程材料,请与您的老师联系.

只是添加一下,您一直在问这个问题(我删除了其他问题),甚至在您索要图表时.您需要团结一致,做家庭作业,并在需要帮助时提出重点问题,最好向您展示自己已经尝试做自己的工作.


int[ ] a=[1,2,3]; 
object o="123"; 
string t="12"; 
string w=t+"3"; 
Boolean b=o.equals(a); 
Boolean b1=o.equals(t); 
Boolean b2=o.equals(w); 
Boolean b3=(o==w ); 



how the code arrived at the results in b,b1,b2, and b3 ?

解决方案

The fact that you put your question in the subject, and your subject in the question kind of says it all. This is obviously homework, so talk to your teacher if you can''t understand the course materials they provide.

Just to add, you keep asking this question ( I deleted the others ) and once you even ask for a diagram. You need to pull yourself together, do your own homework, and ask focused questions if you need help, preferably showing you''ve tried to do your own work.


这篇关于等于测试作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆