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

[P1W6] Typo in example #52

Open
ljleppan opened this issue Mar 17, 2016 · 0 comments
Open

[P1W6] Typo in example #52

ljleppan opened this issue Mar 17, 2016 · 0 comments

Comments

@ljleppan
Copy link
Member

In week 6 in 26.1 in the last section, code reads:

public class MultiplicationTable {
public void print(int upTo) {
    for(int i = 1; i <= upTo; i++) {
        printMultiplicationTableRow(i, upTo);

        System.out.println();
    }
}

public void printMultiplicationTableRow(int multiplier, int howManyTimes) {
    for(int i = 1; j <= howManyTimes; i++) {
        System.out.print(i * multiplier + " ");
    }

the "j" in the last part (j<= howManyTimes) should be "i" instead.

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