android compare arrays

前端 未结 1 372
挽巷
挽巷 2021-01-19 11:37

As I am not the best in android development, I tried something that works for me and for friend\'s mobile, but i have some reports from market that it doesn\'t work for all

相关标签:
1条回答
  • 2021-01-19 11:54

    Don't write what is provided already. :-)

    import java.util.Arrays;
    
    TextView tv = (TextView) findViewById(R.id.text_view);
    tv.setText(Arrays.equals(order1, combo)? "Equal" : "Unequal");
    
    0 讨论(0)
提交回复
热议问题