I am trying to run a java program that takes a '~' tilde as a command line argument. Unfortunately when I run the program what I get is my home directory printed which I do not want. I am not sure how can I achieve the same ?
public class Test {
public static void main(String[] args) {
System.out.println(args[0]);
}
}