I am writing a program in Java that makes use of the command line.
The program that I'm making is used by another program, the problem is that my 4th parameter has to be an int, for example 60(this is an int, it's used for calculations) for my program to work, and the program that uses it then has fixedwidth:60(this is a string) as the 4th parameter.
My question now is how is it possible to still use the 60 in calculations while not giving errors due to the program using it having a string as a 4th parameter and not an int. I have triend Integer.parseInt and Integer.ToString, but I still get the same error
Thanks in advance.
fixedwidth:60? @MichaelIT +1 for code, command line, and error.