Java main method snippet changed to use inline bracket