-
-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2533aa8
commit 96623b5
Showing
37 changed files
with
329 additions
and
208 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# About | ||
|
||
`char`s are generally easy to use. They can be extracted from strings, added back | ||
(by means of a string builder), defined and initialised using literals with single quotes, as in `char ch = 'A';` | ||
, assigned and compared. | ||
`char`s are generally easy to use. | ||
They can be extracted from strings, added back (by means of a string builder), defined and initialised using literals with single quotes, as in `char ch = 'A';`, assigned and compared. | ||
|
||
The Character class encapsulates the char value. |
This file contains 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 |
---|---|---|
@@ -1,17 +1,14 @@ | ||
# Introduction | ||
|
||
The Java `char` type represents the smallest addressable components of text. | ||
Multiple `char`s can comprise a string such as `"word"` or `char`s can be | ||
processed independently. Their literals have single quotes e.g. `'A'`. | ||
Multiple `char`s can comprise a string such as `"word"` or `char`s can be processed independently. | ||
Their literals have single quotes e.g. `'A'`. | ||
|
||
Java `char`s support Unicode encoding so in addition to the Latin character set | ||
pretty much all the writing systems in use worldwide can be represented, | ||
e.g. the Greek letter `'β'`. | ||
Java `char`s support Unicode encoding so in addition to the Latin character set pretty much all the writing systems in use worldwide can be represented, e.g. the Greek letter `'β'`. | ||
|
||
There are many builtin library methods to inspect and manipulate `char`s. These | ||
can be found as static methods of the `java.lang.Character` class. | ||
There are many builtin library methods to inspect and manipulate `char`s. | ||
These can be found as static methods of the `java.lang.Character` class. | ||
|
||
`char`s are sometimes used in conjunction with a `StringBuilder` object. | ||
This object has methods that allow a string to be constructed | ||
character by character and manipulated. At the end of the process | ||
`toString` can be called on it to output a complete string. | ||
This object has methods that allow a string to be constructed character by character and manipulated. | ||
At the end of the process `toString` can be called on it to output a complete string. |
This file contains 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 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 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 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 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
Oops, something went wrong.