Lee Quixotic

Greenhorn
+ Follow
since Oct 28, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Lee Quixotic

Henry Wong wrote:The other point that should be mentioned is that the main method is defined to take a string array -- which holds the command line parameters. It just so happens that using var-args works because var-args are implemented as arrays. Regardless, you should be not doing that -- assuming you mean the main method of the program that is.



I'm really thankful for this information, for I otherwise would have continued to use var-args as my main method parameter.
Thank you for all the other replies and advises, too!
11 years ago
Ah, so "_" is a valid variable name? If so, I'm slightly embarrassed, but thank you so much for the clarification!
11 years ago
Hello!

Today I found out that you can create a parameter list of variable length in a method declaration. When I read further, I stumbled upon this strange notation:



I tried it and it worked without any errors. Now I know what the String... does, but I cannot find out what the underline means. Is it a new form of writing an identifier you're sure not to use again in your code?

Thanks in advance for any help!
Lee
11 years ago