I am completely new and just recently started learning programming with Java. Along the way, there are most likely the simplest questions.
Screen 1. How to make the "test method" method have several passed parameters, not one X, but some more? It seems that you can write another line in parentheses, for example, y , which will add another phrase, but how then to send name to x , and sername to y ? Or I suspect that it is absolutely impossible to do this at all, and you need to write a separate method for y .
Screen 2. Why it is impossible to do this and what is the difference, if all my variables, etc. written inside the class, not inside the main method, please explain. The fact that the main method is the input point of each program, I understood, and everything begins with it.
Question 3. Please advise the literature that really helps get you started. It seems everywhere Java philosophy is advised.

