Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Command Line Arguments

Our Hello program still isn’t very general. We can’t change the name we say hello to without editing and recompiling the source code. This may be fine for the programmers, but what if the secretaries want their computers to say Hello to them? (I know. This is a little far-fetched but bear with me. I’m making a point.)What we need is a way to change the name at runtime rather than at compile time. (Runtime is when we type java HelloRusty. Compile time is when we type javac HelloRusty.java). To do this we’ll make use ofcommand-line arguments. They ...

2,204 0       JAVA COMMAND LINE ARGUMENTS FIRST ELEMEN