-
DOS help.
I'm using a DOS command to run a program (not written in java). How can I use another DOS command to retrieve the value of a string inside a class file.
Inside the class file I have:
Code:
public static String thestring = "string value.";
How can I use a dos command to echo that string.
-
Re: DOS help.
You mean print the value of the variable to the DOS window from within Java? If so, use
Code:
System.out.println(variableName);
Or "print" instead of "println" to not have a new line character at the end.