String messageFile = ...
System.out.println("The messageFile is: " + messageFile + "!!");
You can usually expect the above command to be output:
The messageFile is: MESSAGE!!!!
However, instead I get this:
!!e messageFile is: MESSAGE
See above as "!!" the dots seem to wrap the message. My theory is this:
String messageFile = ...
contains more characters than my intended "MESSAGE". As a result, it transfers the next input (in this case, "!!") to the beginning of the System.out.println () message.
What character causes this?
Additional Information:
Btw, messageFile is initialized by passing a command line argument to the java myClassA class. The myClassA constructor uses super () to pass the messageFile parameter to myClassB. myClassB passes messageFile to the () function.