You can even use Pattern Matching on the same line as the instanceof itself: public boolean isHonda(Object o) { return o instanceof Car c ...
確定! 回上一頁