Click here to watch in Youtube :
https://www.youtube.com/watch?v=7leCcZjEzVw&list=UUhwKlOVR041tngjerWxVccw
Click the below Image to Enlarge
Java Tutorial : Java Character Literals |
Java Tutorial : Java Character Literals |
Java Tutorial : Java Character Literals |
public class CharLiteralDemo { public static void main(String[] args) { char char_a = 'a'; System.out.println("char_a : " + char_a); char char_3 = '3'; System.out.println("char_3 : " + char_3); char singleQuotationMark = '\''; System.out.println("singleQuotationMark : " + singleQuotationMark); char doubleQuotationMark = '\"'; System.out.println("doubleQuotationMark : " + doubleQuotationMark); char captialA = '\u0041'; System.out.println("captialA : " + captialA); char digitZero = '\u0030'; System.out.println("digitZero : " + digitZero); } }
char_a : a char_3 : 3 singleQuotationMark : ' doubleQuotationMark : " captialA : A digitZero : 0
https://sites.google.com/site/javaee4321/java/VariableDemoCharLiteralApp.zip?attredirects=0&d=1
See also:
No comments:
Post a Comment