【Java】:判断数据类型

1.判断是否为double型

object instanceof Double

2.判断是否是int型

object instanceof Interger

3.判断是否是String型

object instanceof String

 

posted @ 2020-09-02 10:26  Geeksongs  阅读(12724)  评论(0编辑  收藏  举报

Coded by Geeksongs on Linux

All rights reserved, no one is allowed to pirate or use the document for other purposes.