Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: in28minutes/java-cheat-sheet
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: ChongTang/java-cheat-sheet
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 1 file changed
  • 2 contributors

Commits on Oct 22, 2018

  1. Fixed an error in substring()

    The output of System.out.println("abcdefghij".substring(3)); should be "defghij", not "cdefghij".
    ChongTang authored Oct 22, 2018
    Configuration menu
    Copy the full SHA
    961e8ad View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from ChongTang/ChongTang-patch-1

    Fixed an error in substring()
    ChongTang authored Oct 22, 2018
    Configuration menu
    Copy the full SHA
    90c1358 View commit details
    Browse the repository at this point in the history
  3. Fixed wrong output

    for (int i = 0,j = 0; i < 10; i++,j--) {
        System.out.print(j);
    }
    The output should be "0-1-2-3-4-5-6-7-8-9"
    ChongTang authored Oct 22, 2018
    Configuration menu
    Copy the full SHA
    ca116c6 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #2 from ChongTang/ChongTang-patch-2

    Fixed wrong output
    ChongTang authored Oct 22, 2018
    Configuration menu
    Copy the full SHA
    eb444c6 View commit details
    Browse the repository at this point in the history
Loading