(String name)
| 26 | } |
| 27 | |
| 28 | public static String authorNameFileAs(String name) { |
| 29 | if (name == null || name.length() == 0) |
| 30 | return name; |
| 31 | int lastSpace = name.lastIndexOf(' '); |
| 32 | if (lastSpace >= 0 && lastSpace < name.length() - 1) |
| 33 | return name.substring(lastSpace + 1) + " " + name.substring(0, lastSpace); |
| 34 | return name; |
| 35 | } |
| 36 | } |
no test coverage detected