how to pass the parameters with special characters to main method?
such as:
%> java Test abc&a
how to pass "&" to Test?
abc\&a does not work.
s**g 发帖数: 15
2
Quote with quote marks?
【在 c*********g 的大作中提到】 : how to pass the parameters with special characters to main method? : such as: : %> java Test abc&a : how to pass "&" to Test? : abc\&a does not work.
c******a 发帖数: 6
3
abc\&a does work
【在 c*********g 的大作中提到】 : how to pass the parameters with special characters to main method? : such as: : %> java Test abc&a : how to pass "&" to Test? : abc\&a does not work.