can't call String.isEmpty() in android

前端 未结 7 614
一向
一向 2021-02-01 12:05

In my android application I can\'t use String.isEmpty() function which is situated in JDK 1.6. Android 2.1 lib doesn\'t have this function in java.lang

7条回答
  •  青春惊慌失措
    2021-02-01 12:11

    as far as I know android supports java 5 , so there is no isEmpty(); you can use length() to simulate isEmpty()

提交回复
热议问题