Normally, I would have to type something like
if(a == x || b == x) {...}
But I saw that when using try/catch blocks, you can do stuff like this:
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch(ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {}
Is there something similar I can do with equality statements, like
if((a | b) == x) {...}
?