Another Java

Java code posted
created at 27 Aug 20:18, updated at 27 Aug 20:19

Edit | Back
1
2
3
4
5
6
7
public static void doSomething(String arg) {
    int idx = 1;
    String[] cases = new String[] {"uppercase","lowercase"};
    StringBuffer sb = new StringBuffer("Here it is: ");
    sb.append(cases[idx]);
    return sb.toString() + arg.toLowerCase();
}
259 Bytes in 4 ms with coderay