Recent Notes

Displaying keyword search results 1 - 2
Created by woolf on February 10, 2011 13:25:20    Last update: February 10, 2011 13:25:20
If Command Extensions are enabled (which is enabled by default), then there are several dynamic environment variables that can be expanded but which don't show up in the list of variables displayed by SET . These variable values are computed dynamically each time the value of the variable is expanded (but see example below). If the user explicitly defines a variable with one of these names, then that definition will override the dynamic one described below: %CD% - expands to the current directory string. %DATE% - expands to current date using same format as DATE command. %TIME% - expands to current time using same format as TIME command. %RANDOM% - expands to a random decimal number between 0 and 32767. %ERRORLEVEL% - expands to the...
Created by Dr. Xi on September 17, 2008 03:28:04    Last update: September 17, 2008 03:29:05
Starting with JDK1.5, Java allowed variable arguments (varargs) to methods. You use three dots after the final parameter type to indicate that variable number of arguments may be passed. Varargs can only be used in the final argument position. For example: static int sum (int ... numbers) { int total... Some examples from the Java API: java.text.MessageFormat: public static String format(String pattern, Object... java.lang.String: public static String format(String format, Object.... java.lang.ProcessBuilder: public ProcessBuilder(String... command)