{"id":76444,"date":"2020-02-14T10:15:41","date_gmt":"2020-02-14T04:45:41","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=76444"},"modified":"2020-02-14T10:15:41","modified_gmt":"2020-02-14T04:45:41","slug":"java-character-class","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/","title":{"rendered":"Java Character Class &#8211; Implement Methods with Coding Examples"},"content":{"rendered":"<p>We know that there are 8 primitive <em><strong>data types in Java<\/strong><\/em>. Java\u2019s primitive data types are the data values and not objects. Java Character Class wraps the value of Primitive data type in an object.<\/p>\n<p>There are some cases when we may encounter a situation where numerical values are needed but in the form of objects. Java solves this problem by providing the concept of <strong>wrapper classes.<\/strong><\/p>\n<p><strong>Wrapper classes<\/strong> are part of Java\u2019s standard library <strong>java.lang<\/strong> and these convert primitive data type into an object.<\/p>\n<p><em>Java provides 8 wrapper classes which are:<\/em><\/p>\n<table class=\"tv-table-center\">\n<tbody>\n<tr>\n<td style=\"text-align: left\"><b><i>Datatype<\/i><\/b><\/td>\n<td style=\"text-align: center\"><b><i>Wrapper Class<\/i><\/b><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">boolean<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Boolean<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">byte<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Byte<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">char<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Character<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">short<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Short<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">int<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Integer<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">long<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Long<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">float<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Float<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">double<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Double<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"text-align: left\">Java Character Class<\/h3>\n<p>In this article, we will discuss the <strong>Character Class<\/strong> in Java which wraps the value of primitive data type <strong>char<\/strong> into its object. All the attributes, methods, and constructors of the Character class are specified by the <strong>Unicode<\/strong> Data file which is maintained by the <em>Unicode Consortium.<\/em><\/p>\n<p>The instances or objects of Character class can hold single character data. In addition, this wrapper class also provides several methods useful when manipulating, inspecting or dealing with the single-character data.<\/p>\n<p><strong>Syntax of creating an object from the Character class is as follows:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Character letter = new Character( 'g' );\nCharacter num = new Character( '7' );<\/pre>\n<p>We created the object of the Character wrapper class using the <em>Character constructor<\/em>. In the above syntax, the Java compiler will automatically convert the &#8216;char&#8217; value into an object of Character type.<\/p>\n<p>This process of converting primitive data type into an object is called <strong>autoboxing<\/strong> and, the reverse process, that is, converting the object into primitive data types is called <strong>unboxing.<\/strong><\/p>\n<p>The Character Class is <strong>immutable<\/strong>, which means, once we create its object, we cannot change it.<\/p>\n<p><strong>The above syntax can also be written like this:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Character char1 = new Character( 'g' );\n\/\/ primitive char 'g' is wrapped in a Character object char1.<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Character char2 = new Character( char1 );\n\/\/ primitive value of char char1 is wrapped in a Character object char2.<\/pre>\n<h3>Escape Sequences<\/h3>\n<p>An escape sequence is a character preceded by a backslash(\\), which gives a different meaning to the compiler. The following table shows the escape sequences in Java:<\/p>\n<table class=\"tv-table-center\">\n<tbody>\n<tr>\n<td style=\"text-align: center\"><b><i>Escape Sequence<\/i><\/b><\/td>\n<td style=\"text-align: center\"><b><i>Description<\/i><\/b><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">\\t<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Inserts a tab in the text at this point.<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">\\b<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Inserts a backspace in the text at this point.<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">\\n<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Inserts a new line in the text at this point<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">\\r<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Inserts a carrier return in the text at this point<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">\\f<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Inserts a form feed in the text at this point<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">\\\u2019<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Inserts a single quote character in the text at this point<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">\\\u201d<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Inserts a double quote character in the text at this point<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">\\\\<\/span><\/td>\n<td style=\"text-align: center\"><span style=\"font-weight: 400\">Inserts a backslash in the text at this point<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Code to illustrate some escape sequences:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.TechVidvan.CharacterDemo;\npublic class EscapeSequencesDemo\n{\n  public static void main(String args[])\n  {\n    System.out.print(\"Hello \\nWelcome to\"); \/\/using \\n\n    System.out.println(\" The \\\"TechVidvan\\\" tutorial.\"); \/\/using \\\"\n    System.out.println(\"This is a \\'Java\\' tutorial.\"); \/\/using \\'\n    System.out.println(\"My java file is in: projects\\\\src\\\\java\"); \/\/using \\\\\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Hello<br \/>\nWelcome to The &#8220;TechVidvan&#8221; tutorial.<br \/>\nThis is a &#8216;Java&#8217; tutorial.<br \/>\nThis is a &#8220;TechVidvan&#8221; tutorial.<br \/>\nMy java file is in: projects\\src\\java<\/div>\n<h3>Methods of Character Class in Java<\/h3>\n<p>The Character Class comes with several methods that are useful for performing operations on characters. These methods are <strong>static<\/strong> in nature, that is, they can be directly called with the help of class name without creating any object.<\/p>\n<p>We will discuss each of these methods in detail:<\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/02\/methods-of-character-class-in-java.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-76584\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2020\/02\/methods-of-character-class-in-java.jpg\" alt=\"Java Character Class Methods\" width=\"802\" height=\"420\" \/><\/a><\/p>\n<h4>1. static boolean isDigit(char ch) Method<\/h4>\n<p>The method isDigit() is used to determine whether the specific character value (ch) is a digit or not. It checks whether the value is a digit that is <strong>0, 1, 2, 3, 4, 5, 6, 7, 8, 9.<\/strong><\/p>\n<p>As it is a boolean method, it returns true if the character is a digit and false if character value is not a digit.<\/p>\n<p><strong>Code to illustrate the use of the isDigit() method:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.TechVidvan.CharacterDemo;\npublic class IsDigitMethod\n{\n  \/\/ Java program to demonstrate isDigit() method\n  public static void main(String[] args)\n  {\n    char ch = 'A';\n    char ch1 = '1';\n    \/\/checks whether the values of ch and cha1 are digits or not.\n    System.out.println(Character.isDigit(ch));\n    System.out.println(Character.isDigit(ch1));\n    \/\/checks whether the values \u2018t\u2019 , \u20188\u2019, \u2019 H\u2019 are digits or not.\n    System.out.println(Character.isDigit('t'));\n    System.out.println(Character.isDigit('8'));\n    System.out.println(Character.isDigit('H'));\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">false<br \/>\ntrue<br \/>\nfalse<br \/>\ntrue<br \/>\nfalse<\/div>\n<h4>2. static boolean isLetter(char ch) Method<\/h4>\n<p>The method isLetter() is used to determine whether the specific character value (ch) is a letter or not. It checks whether the value is a letter that is, <strong>[ A &#8211; Z ] or [ a &#8211; z ]<\/strong>. As it is a boolean method, it returns true if the character is a letter and false if character value is not a letter.<\/p>\n<p>We can also write the ASCII value of the letter because Java can implicitly typecast the value from char to int.<\/p>\n<p><strong>Code to illustrate the use of the isLetter() method:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.TechVidvan.CharacterDemo;\npublic class IsLetterMethod\n{\n  \/\/ Java program to demonstrate isLetter() method\n  public static void main(String[] args)\n  {\n    char ch = 65; \/\/Passing an ASCII value 65 which is equal to \u2018A\u2019\n    char ch1 = '3';\n\n    \/\/checks whether the values of ch and ch1 are letters or not\n    System.out.println(Character.isLetter(ch));\n    System.out.println(Character.isLetter(ch1));\n\n    \/\/checks whether the 'b', '8' and 'H' are letters or not\n    System.out.println(Character.isLetter('b'));\n    System.out.println(Character.isLetter('8'));\n    System.out.println(Character.isLetter('H'));\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">true<br \/>\nfalse<br \/>\ntrue<br \/>\nfalse<br \/>\ntrue<\/div>\n<h4>3. static boolean isWhiteSpace(char ch) Method<\/h4>\n<p>Whitespace in Java can be considered as space, tab, or a new line, and the method isWhiteSpace() determines whether the given char(ch) is whitespace or not. As it is also a boolean method, it returns true if the character is whitespace and false if character value is not whitespace.<\/p>\n<p><strong>Code to illustrate the use of the isWhiteSpace() method:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.TechVidvan.CharacterDemo;\npublic class IsWhiteSpaceMethod\n{\n  \/\/ Java program to demonstrate isWhitespace() method\n\n  public static void main(String[] args)\n  {\n    System.out.println(Character.isWhitespace('W'));\n    System.out.println(Character.isWhitespace(' '));\n    System.out.println(Character.isWhitespace(0));\n    System.out.println(Character.isWhitespace('t'));\n    System.out.println(Character.isWhitespace('\\n'));\n    System.out.println(Character.isWhitespace('\\t'));\n    System.out.println(Character.isWhitespace('\\b'));\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">false<br \/>\ntrue<br \/>\nfalse<br \/>\nfalse<br \/>\ntrue<br \/>\ntrue<br \/>\nfalse<\/div>\n<h4>4. static boolean isUpperCase(char ch) Method<\/h4>\n<p>The method isUpperCase() is used to determine whether the specific character value (ch) is an uppercase letter or not. It checks whether the value is a letter that is, <strong>[ A &#8211; Z ].<\/strong><\/p>\n<p>As it is a boolean method, it returns true if the character is in uppercase or capital letter and false if character value is not an uppercase letter.<\/p>\n<p><strong>Code to illustrate the use of the isUpperCase() method:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.TechVidvan.CharacterDemo;\npublic class IsUpperCase\n{\n  \/\/ Java program to demonstrate isUpperCase() method\n\n  public static void main(String[] args)\n  {\n    char ch = 78;\n    \/\/here the value in the numeric is the ASCII value of N\n    System.out.println(Character.isUpperCase(ch));\n\n    \/\/checks whether 'B' and 'b' are in uppercase or not\n    System.out.println(Character.isUpperCase('B'));\n    System.out.println(Character.isUpperCase('b'));\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">true<br \/>\ntrue<br \/>\nfalse<\/div>\n<h4>5. static boolean isLowerCase(char ch) Method<\/h4>\n<p>The method isLowerCase() is used to determine whether the specific character value (ch) is a lowercase letter or not. It checks whether the value is a letter that is, <strong>[ a &#8211; z ]<\/strong>.<\/p>\n<p>As it is a boolean method, it returns true if the character is in lowercase or a small letter and false if character value is not a lowercase letter.<\/p>\n<p><strong>Code to illustrate the use of the isLowerCase() method:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.TechVidvan.CharacterDemo;\npublic class IsLowerCase\n{\n  \/\/ Java program to demonstrate isUpperCase() method\n\n  public static void main(String[] args)\n  {\n    char ch = 78;\n    \/\/here the value in the numeric is the ASCII value of N\n    System.out.println(Character.isLowerCase(ch));\n\n    \/\/checks whether 'f', 'B' and 'b' are in Lowercase or not\n    System.out.println(Character.isLowerCase('f'));\n    System.out.println(Character.isLowerCase('B'));\n    System.out.println(Character.isLowerCase('b'));\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">false<br \/>\ntrue<br \/>\nfalse<br \/>\ntrue<\/div>\n<h4>6. static char toUpperCase(char ch) Method<\/h4>\n<p>The method toUpperCase() is used to convert the specific character value (ch) into an uppercase letter. It returns the uppercase form of the input char value.<\/p>\n<p><strong>Code to illustrate the use of the toUpperCase() method:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.TechVidvan.CharacterDemo;\npublic class ToUpperCase\n{\n  \/\/ Java program to demonstrate toUpperCase() method\n  public static void main(String[] args)\n  {\n    char ch = 122;\t\t\/\/ASCII value of z is 122\n    char ch1 = 108;\t\t\/\/ASCII value of l is 108\n\n    System.out.println(Character.toUpperCase(ch));\n    System.out.println(Character.toUpperCase(ch1));\n\n    System.out.println(Character.toUpperCase('a'));\n    System.out.println(Character.toUpperCase('t'));\n    System.out.println(Character.toUpperCase('S'));\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">Z<br \/>\nL<br \/>\nA<br \/>\nT<br \/>\nS<\/div>\n<h4>7. static char isLowerCase(char ch) Method<\/h4>\n<p>The method toLowerCase() is used to convert the specific character value (ch) into a lowercase letter. It returns the lowercase form of the input char value.<\/p>\n<p><strong>Code to illustrate the use of the toLowerCase() method:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.TechVidvan.CharacterDemo;\npublic class ToLowerCase\n{\n  \/\/ Java program to demonstrate toLowerCase() method\n  public static void main(String[] args)\n  {\n    char ch = 66; \/\/ASCII value of B is 66\n    char ch1 = 90; \/\/ASCII value of Z is 90\n\n    System.out.println(Character.toLowerCase(ch));\n    System.out.println(Character.toLowerCase(ch1));\n\n    System.out.println(Character.toLowerCase('A'));\n    System.out.println(Character.toLowerCase('R'));\n    System.out.println(Character.toLowerCase('e'));\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">b<br \/>\nz<br \/>\na<br \/>\nr<br \/>\ne<\/div>\n<h4>8. static String toString(char ch) Method<\/h4>\n<p>The toString(char ch) method in Java returns an object of String class for the specified char value. In simple words, it converts a char value into String.<\/p>\n<p>We cannot use ASCII value in this method because this method is of String type and the ASCII value cannot be converted to the character value directly.<\/p>\n<p><strong>Code to illustrate the use of the toString() method:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">package com.TechVidvan.CharacterDemo;\npublic class ToStringMethod\n{\n  \/\/ Java program to demonstrate toString() method\n  public static void main(String args[])\n  {\n    char ch = 'R';\n    \/\/ the character will be printed as it is\n    System.out.println(Character.toString(ch));\n    System.out.println(Character.toString('A'));\n    System.out.println(Character.toString('b'));\n    System.out.println(Character.toString('C'));\n  }\n}<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<div class=\"code-output\">R<br \/>\nA<br \/>\nb<br \/>\nC<\/div>\n<h3>Summary<\/h3>\n<p>Character is one of the most basic units of data in Java. It is a primitive data type that we can convert into the objects of its respective wrapper class called the Character Class.<\/p>\n<p>In this tutorial, we discussed the Java Character Class and different methods of the Character class which is useful to govern the character values. Along with this, we also learned different escape sequences in Java.<\/p>\n<p>This article will definitely help you to understand and develop the complex Java programs.<\/p>\n<p>Thank you for reading our article. Don&#8217;t forget to share your feedback through the comment section below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We know that there are 8 primitive data types in Java. Java\u2019s primitive data types are the data values and not objects. Java Character Class wraps the value of Primitive data type in an&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":76584,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[1700,1701,1702,1703,1704,1705,1706,1707,1708],"class_list":["post-76444","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-escape-sequences-in-java","tag-introduction-to-java-character","tag-java-character","tag-java-character-class","tag-java-wrapper-class","tag-methods-of-java-character-class","tag-static-boolean-isdigitchar-ch","tag-static-boolean-isletterchar-ch","tag-static-boolean-isuppercasechar-ch"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Java Character Class - Implement Methods with Coding Examples - TechVidvan<\/title>\n<meta name=\"description\" content=\"Explore the concept of Java Character Class in detail and learn to implement the 8 methods of Java Character Class with the help of coding examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/java-character-class\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Java Character Class - Implement Methods with Coding Examples - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Explore the concept of Java Character Class in detail and learn to implement the 8 methods of Java Character Class with the help of coding examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/java-character-class\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-14T04:45:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/02\/methods-of-character-class-in-java.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Java Character Class - Implement Methods with Coding Examples - TechVidvan","description":"Explore the concept of Java Character Class in detail and learn to implement the 8 methods of Java Character Class with the help of coding examples.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/","og_locale":"en_US","og_type":"article","og_title":"Java Character Class - Implement Methods with Coding Examples - TechVidvan","og_description":"Explore the concept of Java Character Class in detail and learn to implement the 8 methods of Java Character Class with the help of coding examples.","og_url":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2020-02-14T04:45:41+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/02\/methods-of-character-class-in-java.jpg","type":"image\/jpeg"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Java Character Class &#8211; Implement Methods with Coding Examples","datePublished":"2020-02-14T04:45:41+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/"},"wordCount":1178,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/02\/methods-of-character-class-in-java.jpg","keywords":["Escape sequences in Java","Introduction to Java Character","Java Character","Java Character Class","Java Wrapper class","Methods of Java Character Class","static boolean isDigit(char ch)","static boolean isLetter(char ch)","static boolean isUpperCase(char ch)"],"articleSection":["Java Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/java-character-class\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/","url":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/","name":"Java Character Class - Implement Methods with Coding Examples - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/02\/methods-of-character-class-in-java.jpg","datePublished":"2020-02-14T04:45:41+00:00","description":"Explore the concept of Java Character Class in detail and learn to implement the 8 methods of Java Character Class with the help of coding examples.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/java-character-class\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/02\/methods-of-character-class-in-java.jpg","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2020\/02\/methods-of-character-class-in-java.jpg","width":802,"height":420,"caption":"Java Character Class Methods"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/java-character-class\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Java Character Class &#8211; Implement Methods with Coding Examples"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/76444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=76444"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/76444\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/76584"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=76444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=76444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=76444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}