How to find index of STRING array in Java from a given value?

前端 未结 13 2059
谎友^
谎友^ 2020-12-08 02:11

I wanted to know if there\'s a native method in array for Java to get the index of the table for a given value ?

Let\'s say my table contains these strings :

<
相关标签:
13条回答
  • 2020-12-08 02:56

    Type in:

    Arrays.asList(TYPES).indexOf("Sedan");
    
    0 讨论(0)
提交回复
热议问题