1 Ch 5 : Mathematical Functions, Characters, and

1 Ch 5 : Mathematical Functions, Characters, and
1 / 1
1 Ch 5 : Mathematical Functions, Characters, and - slide 1 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 2 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 3 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 4 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 5 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 6 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 7 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 8 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 9 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 10 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 11 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 12 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 13 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 14 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 15 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 16 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 17 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 18 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 19 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 20 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 21 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 22 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 23 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 24 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 25 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 26 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 27 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 28 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 29 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 30 of 31 1 Ch 5 : Mathematical Functions, Characters, and - slide 31 of 31
1 Ch 5 : Mathematical Functions, Characters, and Strings CS1: Java Programming Colorado State University Original slides by Daniel Liang Modified slides by Kris Brown 2 Character Data Type char letter A; (ASCII) char numChar 4;

Related Topics

Download this presentation From Below

"1 Ch 5 : Mathematical Functions, Characters, and" is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
1 Ch 5 : Mathematical Functions, Characters, and Strings CS1: Java Programming
Colorado State University

Original slides by Daniel Liang
Modified slides by Kris Brown<br>
02
2 Character Data Type char letter = 'A'; (ASCII)
char numChar = '4'; (ASCII)
char letter = '\u0041'; (Unicode)
char numChar = '\u0034'; (Unicode) Four hexadecimal digits. NOTE: The increment and decrement operators can also be used on char variables to get the next or preceding Unicode character. For example, the following statements display character b.
char ch = 'a';
System.out.println(++ch);<br>
03
3 Unicode Format Java characters use Unicode, a 16-bit encoding scheme established by the Unicode Consortium to support the interchange, processing, and display of written texts in the world’s diverse languages. Unicode takes two bytes, preceded by \u, expressed in four hexadecimal numbers that run from '\u0000' to '\uFFFF'. So, Unicode can represent 65535 + 1 characters. Unicode \u03b1 \u03b2 \u03b3 for three Greek letters<br>