If a program called Compressor is started with the command I
If a program called Compressor is started with the command
If a program called Compressor is started with the command java Compressor -forma=ZIP-mode=MAX -I -0 filos.zip what are the values of args[0], args[1], and so on?Solution
So,
Your command is:
java Compressor -format=ZIP -mode=MAX -I * -O files.zip
Since, command line arguments are seperated by space, so
arg[0] = -format=ZIP
arg[1] = -mode=MAX
arg[2] = -I
arg[3] = *
arg[4] = -O
arg[5] = files.zip

