Skip to content

String literals and string formatting #6

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

Open
mckeeh3 opened this issue Apr 20, 2021 · 0 comments
Open

String literals and string formatting #6

mckeeh3 opened this issue Apr 20, 2021 · 0 comments

Comments

@mckeeh3
Copy link

mckeeh3 commented Apr 20, 2021

Expressions like System.out.printf("x = %d, y = %d%n", x, y);
are shown and executed as
System.out.printf("x = 0, y = 0); ==> "x = 0, y = 0"

Also, something like return ""; changes to return "";
But return "(empty)"; retains the string content.

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

No branches or pull requests

1 participant