I am reviewing a number of different java programs and am trying to work out how I can update the reference to the program name once only instead of twice. Is there a way t
You could set it as an environment variable. Something like,
export CLS=Main # Change Main once javac $CLS.java && java $CLS # Will use "Main"