New code if (o instanceof String s) { ... use s ... } We often want to compare a variable such as o against multiple alternatives. Java ...
確定! 回上一頁