Question: how can i take in a char as an command line argument in java. I know how to do it for an integer and double which get converted to strings, but am stuck on character....I was thinking using charAt();

```
     double x = Double.parseDouble(args[0]);
// i know the below line doesnt make sense because charAt(c) expects 'c' to be the actual 
// character and i have an index. but its what i wish to do(if it makes any sense).
       char op = charAt(args[1]);
       double y = Double.parseDouble(args[2]);

   //for (Operation op : jumpTable)
    System.out.printf("%f %s %f = %f%n", x, op, y, myArray[op].Compute(x, y));

```

thanks in advance guys!!! :))))

Answer: 
If you know your input string is EXACTLY one character long, use str.charAt(0);
1. Take an argument into String because the default JVM provides command line args as a String[] and you can get the first arg with `String s = args[0];`
2. Convert first letter of `String s` into a `char` with `char ch = s.charAt(0);`