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

A possible typo #1

Open
Yikai-Cao opened this issue Aug 23, 2022 · 0 comments
Open

A possible typo #1

Yikai-Cao opened this issue Aug 23, 2022 · 0 comments

Comments

@Yikai-Cao
Copy link

The output of the following statements in topics W3.2c may be wrong

public static void printPoint(Point p) {
    System.out.println("(" + p.x + ", " + p.y + ")");
}

public static void main(String[] args) {
    Point spot = new Point(3, 4);
    printPoint(spot);
}

It may be

(3, 4)

But shown as

3, 4
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