Android - Check whether a value exist in an Array

前端 未结 5 1289
挽巷
挽巷 2021-02-01 01:24

I have an array named \"bob\" which contains values.

String[] bob = { \"this\", \"is\", \"a\", \"really\", \"silly\", \"list\" };

How can I kno

5条回答
  •  野的像风
    2021-02-01 01:56

    above code does not work for me. primitive types not allowed i guess.

    got to do it manually:

    char[] charlist = {'a','b','c','d'}
    boolean arraycontains = false;
    char tester = 'c';
    for (int y=0;y

    :)

提交回复
热议问题