Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single char literals are not supported #2

Closed
markiewb opened this issue May 16, 2013 · 1 comment
Closed

Single char literals are not supported #2

markiewb opened this issue May 16, 2013 · 1 comment
Assignees
Milestone

Comments

@markiewb
Copy link
Owner

'?'+variable+'?' 

isn't supported by additional hints

@ghost ghost assigned markiewb May 16, 2013
@markiewb
Copy link
Owner Author

markiewb commented Mar 7, 2015

The wrong ones:

//      String v1 = name + " (" + x + ", " + y + ')';
        String v1 = MessageFormat.format("{0} ({1}, {2}{3}", name, x, y, ')');
//      String v2 = name + " (" + x + ", " + y + ')';
        String v2 = String.format("%s (%s, %s%s", name, x, y, ')');
//      String v3 = name + " (" + x + ", " + y + ')';
        String v3 = new StringBuilder().append(name).append(" (").append(x).append(", ").append(y).append(')').toString();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant