Think Java by Allen B. Downey and Chris Mayfield

Think Java by Allen B. Downey and Chris Mayfield

Author:Allen B. Downey and Chris Mayfield
Language: eng
Format: mobi
Publisher: O'Reilly Media, Inc.
Published: 2016-05-24T16:00:00+00:00


System.out.print("Roman alphabet: "); for (char c = 'A'; c <= 'Z'; c++) { System.out.print(c); } System.out.println();

Java uses Unicode to represent characters, so strings can store text in other alphabets like Cyrillic and Greek, and non-alphabetic languages like Chinese. You can read more about it at http://unicode.org/.

In Unicode, each character is represented by a “code unit”, which you can think of as an integer. The code units for uppercase Greek letters run from 913 to 937, so we can display the Greek alphabet like this:



Loading...
Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.