Originally Posted by
copeg
This is up to the program. Placing text after the class name (or jar name) when running from the command line is a way of passing data to your program. Your program can intercept these in the main function. For example:
java Generator –html results0809.txt
In the main method what happens is
public static void main( String args[] ){
///args[0] is "-html"
///args[1] is "results0809.txt"
}
So in your case you can determine whether to output to html, and what file to do so, by checking the args parameter.
hi again, i'm not really getting it would you mind if i posted my attempt so you could tell me where i'm going wrong? sorry to be a bother thanks