I need "args[i]" to be converted to Uppercase so the output will be:
"$ARG1" line break
"$ARG2" line break
"$ARG3" line break
and so on. I need to use the "toUpperCase" method but don't know how.
public class Main {
public static void main(String[] args) {
System.out.println("Number of args:" +
args.length);
for(int i=0; i<args.length; i++){
char dollar = '\u0024';
System.out.println(dollar + args[i]);
}
}
}