Main.java:9: error: incompatible types: bad type in conditional expression
? p (p.length > 0 ? p[0] : ' ' + s, l, p)
^
char cannot be converted to String
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error