我有7 按钮显示值我想要检查值是否相同,然后做一些我想要检查String
的值我以前和当前点击的相同然后做点什么
我将如何比较这个?
String my,temp;
Button e00,e01,e02,e03,e04,e05,e06;
my=e00.getText().toString()+
e01.getText().toString()+
e02.getText().toString()+
e03.getText().toString()+
e04.getText().toString()+
e05.getText().toString()+
e06.getText().toString();
last_week.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v)
{
temp = my
if(temp==my)
{
do something....;
}
}
});
this logic not wok
temp1=my;
temp2=temp1;
my2=temp2;
if(temp2==my2)
{
// hi=1;
Toast.makeText(HoyahCalendar.this, "Date
are same ", Toast.LENGTH_SHORT).show();
}
my="";