Whenever I create a new Java file in Eclipse and check off the option to add public static void main(String args[]), this code is generated:
public static void main(String args[])
pub
Also make sure you check "Use code formatter" in Java > Editor > Templates