-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Edits/New Content - General, Java, Git, R #826
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a9835c2
Edits/New Content - General, Java, Git, R
Dusch4593 b4634c9
Merge branch 'main' into gen-java-git-r-keywords
Dusch4593 c3e007e
refactor: implemented review feedback
Dusch4593 ed7b5d8
Update content/git/concepts/tag/tag.md
Dusch4593 5512005
Update content/git/concepts/tag/tag.md
Dusch4593 da6cc52
Update content/java/concepts/strings/strings.md
Dusch4593 72c12cc
Update content/java/concepts/strings/strings.md
Dusch4593 19b4627
refactor: implemented review feedback
Dusch4593 61ff48d
Merge branch 'main' into gen-java-git-r-keywords
Dusch4593 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| --- | ||
| Title: 'Tag' | ||
SSwiniarski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Description: 'Creates, lists, deletes, or verifies a commit marker with a GnuPG tag object attached.' | ||
| Subjects: | ||
| - 'Bash/Shell' | ||
| - 'Developer Tools' | ||
| Tags: | ||
| - 'Git' | ||
| - 'Version Control' | ||
| CatalogContent: | ||
| - 'learn-the-command-line' | ||
| - 'learn-git' | ||
| --- | ||
|
|
||
| The **`tag`** command creates, lists, deletes, or verifies a commit marker with a [GnuPG tag object](https://gnupg.org/) attached. This helps add some semantic meaning to a commit message. | ||
|
|
||
| ## Syntax | ||
|
|
||
| ```pseudo | ||
| git tag <flags> <tag-name> <commit-reference> <tag-object> | ||
| ``` | ||
|
|
||
| The `<flags>` include the following: | ||
|
|
||
| | Flag | Description | | ||
| | :---------------: | ------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| | `-a`/`--annotate` | The tag is annotated but unsigned. | | ||
| | `-s`/`--sign` | The tag is annotated and signed with the key of the default email address. | | ||
| | `-f`/`--force` | An existing tag is forcibly replaced with a given `<tag-name>`. | | ||
| | `-d`/`--delete` | One or more existing tags are deleted by `<tag-name>`. | | ||
| | `-v`/`--verify` | One or more existing tags are verified by `<tag-name>`. | | ||
| | `-l`/`--list` | All existing tags are listed (same as running just `git tag`). | | ||
| | `-m`/`--message` | A message for an existing tag is defined instead of prompted. Multiple `-m` messages can be used, but they will combined as separate paragraphs. | | ||
| | `-F`/`--file` | A tag message from an existing file is read from the standard input. | | ||
| | `-e`/`--edit` | A tag message made from `-m` or `-F` is edited. | | ||
|
|
||
| The `<tag-name>` refers to the tag object for a commit. | ||
|
|
||
| The `<commit-reference>` is the commit the tag will be attached to. | ||
|
|
||
| The `<tag-object>` is usually the commit that the new tag refers to (defaults to the `HEAD`) pointer. | ||
|
|
||
| ## Example | ||
|
|
||
| The following is a small example of the `tag` command being used to create and annotate an object for the `HEAD` commit pointer: | ||
|
|
||
| ```shell | ||
| git tag -a tag-for-head-pointer | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 20 additions & 8 deletions
28
content/java/concepts/strings/terms/compareTo/compareTo.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 14 additions & 6 deletions
20
content/java/concepts/strings/terms/compareToIgnoreCase/compareToIgnoreCase.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| --- | ||
| Title: '.equals()' | ||
| Description: 'Returns true if two strings are equal in value and false otherwise.' | ||
| Subjects: | ||
| - 'Computer Science' | ||
| Tags: | ||
| - 'Booleans' | ||
| - 'Strings' | ||
| - 'Methods' | ||
| CatalogContent: | ||
| - 'learn-java' | ||
| - 'paths/computer-science' | ||
| --- | ||
|
|
||
| The **`.equals()`** method returns `true` if two strings are equal in value. Otherwise, `false` is returned. | ||
|
|
||
| ## Syntax | ||
|
|
||
| ```pseudo | ||
| string.equals(object); | ||
| ``` | ||
|
|
||
| The `object` can either be a string literal or a representation of a `String` value. This will return `true` if the `string` has the same character sequence as `object`. | ||
|
|
||
| ## Example | ||
|
|
||
| The following example showcases the `.equals()` method: | ||
|
|
||
| ```java | ||
| import java.io.*; | ||
|
|
||
| public class MyClass { | ||
| public static void main(String[] args) { | ||
| // With string literals | ||
| System.out.println("4".equals("four")); | ||
|
|
||
| // With string objects | ||
| String myFavoriteLanguage = "Java"; | ||
| String codeNinjasFavoriteLangauge = "Java"; | ||
| System.out.println(myFavoriteLanguage.equals(codeNinjasFavoriteLangauge)); | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| This will print the following output: | ||
|
|
||
| ```shell | ||
| false | ||
| true | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| --- | ||
| Title: '.length()' | ||
| Description: 'Returns the number of characters contained in a string.' | ||
| Subjects: | ||
| - 'Computer Science' | ||
| Tags: | ||
| - 'Characters' | ||
| - 'Strings' | ||
| - 'Methods' | ||
| CatalogContent: | ||
| - 'learn-java' | ||
| - 'paths/computer-science' | ||
| --- | ||
|
|
||
| The **`.length()`** method returns the number of characters contained in a string. | ||
|
|
||
| ## Syntax | ||
|
|
||
| ```pseudo | ||
| string.length() | ||
| ``` | ||
|
|
||
| No parameters are required for the `.length()` method. | ||
|
|
||
| ## Example | ||
|
|
||
| The `.length()` method is showcased in the following example: | ||
|
|
||
| ```java | ||
| import java.io.*; | ||
|
|
||
| class Example { | ||
| public static void main(String[] args) { | ||
| String greetings = "Hello, Code Ninja!"; | ||
| System.out.println(greetings.length()); | ||
| } | ||
| } | ||
| ``` | ||
Dusch4593 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.