在Java 中,要獲取變數或值的型別,我們可以使用Object 類的getClass() 方法。 ... int是基本类型,不能用instanceof判断,java没有typeof判断。 已赞过已踩过<.
確定! 回上一頁