lecture-30b - Object Oriented Programming Java - Characters...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Object Oriented Programming Java - Characters and Strings R.B. Lenin Winter 2006 DA-IICT 1 Object Oriented Programming Java - Characters and Strings
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Object Oriented Programming Java - Characters and Strings R.B. Lenin Winter 2006 DA-IICT 2 Characters In Java, single characters are represented using the data type char . Character constants are written as symbols enclosed in single quotes: char ch1 = ‘X’;
Background image of page 2
Object Oriented Programming Java - Characters and Strings R.B. Lenin Winter 2006 DA-IICT 3 Characters ASCII stands for American Standard Code for Information Interchange . ASCII is one of the document coding schemes widely used today. This coding scheme allows different computers to share information easily.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Object Oriented Programming Java - Characters and Strings R.B. Lenin Winter 2006 DA-IICT 4 Characters ASCII works well for English-language documents because all characters and punctuation marks are included in the ASCII codes. ASCII does not represent the full character sets of other languages.
Background image of page 4
Object Oriented Programming Java - Characters and Strings R.B. Lenin Winter 2006 DA-IICT 5 Characters The Unicode Worldwide Character Standard ( Unicode ) supports the interchange, processing, and display of the written texts of diverse languages. Java uses the Unicode standard for representing char constants.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Object Oriented Programming Java - Characters and Strings R.B. Lenin Winter 2006 DA-IICT 6 Strings A string is a sequence of characters that is treated as a single value. Instances of the
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 22

lecture-30b - Object Oriented Programming Java - Characters...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online