I am a university student and new to java. Last year, in the second semester, we did some C programming. I test a lot of things before I really understand this. In C, I only need to start with int main () to start coding. Java is a bit confusing. Why, I “need” (I'm not sure I need to start this path) to start with
public static void main (String[] args)
if I will not use the argument in my program. It:
public static void main ()
gives me an error. I do not want to read any arguments.
I hope you understand - English is not my native language.
source
share