Can you explain what is the difference between
public static void main( String[] args)
and public static void main(String args[])
My program prints out the parameters typed by the user but it seems they both work.
hi,
these are 2 way that Java allow user to declare main method and both work.But we should declare as the first way String[] args because it is encouraged.