Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners character literal in octal format
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


narendra choudhary
character literal in octal format
0 Answer(s)      2 years and 4 months ago
Posted in : Java Beginners


class EscapeSequence1 {

public static void main(String args[]) {

char ch='\141'; //this works correctly

char ch2='\777'; //this line give compile time error listed below

System.out.println("ch is:"+ch);

System.out.println("ch2 is:"+ch2); }

}

output is:::..

javac EscapeSequence1.java

javac EscapeSequence1.java

Process started >>>

EscapeSequence1.java:6: error: unclosed character literal char ch2='\777'; //this line give compile time error listed below ^

EscapeSequence1.java:6: error: unclosed character literal char ch2='\777'; //this line give compile time error listed below ^

EscapeSequence1.java:6: error: not a statement char ch2='\777'; //this line give compile time error listed below ^

3 errors

<<< Process finished


Advertisement
View Answers

Related Tutorials/Questions & Answers:
character literal in octal format
character literal in octal format  class EscapeSequence1 { public...;>> EscapeSequence1.java:6: error: unclosed character literal char... ^ EscapeSequence1.java:6: error: unclosed character literal char ch2
octal literal
octal literal  in the following code how value of i and j will be 8 and 7.please explain. public class Test { public static void main(String[] args){ int i = 010; int j = 07; System.out.println(i); System.out.println(j
Advertisements
Convert a Character into the ASCII Format
Convert a Character into the ASCII Format   ... a character data into the ASCII format. The java.lang package provides the functionality to convert the  character data into the ASCII format Description
octal to binary
octal to binary  i want to know how to convert a octal to binary number   Here is a java example that converts octal to binary. import... InputStreamReader(System.in)); System.out.print("Enter octal number
Convert Decimal to Octal
into the octal format. It returns back the number as a  string. Here... Convert Decimal to Octal       In this section, you will learn to convert decimal number into octal
Convert Octal to Decimal
Convert Octal to Decimal       In this section, you will learn to convert an octal number to decimal. The following program helps you converts number octal to decimal. 
Java Convert Octal to Binary
Java Convert Octal to Binary In this tutorial, you will learn how to convert octal to binary. Java has provide different ways to change the number system of different numbers. You can convert and decimal to octal, decimal to binary
Literal in Java
. They are in different forms like decimal , hexadecimal and octal. The decimal literal... in hexadecimal, 014 in octal. Character Literals : A char is represented using character...Literal in Java In this section you will learn about literals in Java. "
Convert integer type data into binary, octal and hexadecimal
Convert integer type data into binary, octal and hexadecimal... will learn how to convert an integer type data into binary, octal and hexadecimal... into binary, octal, and hexadecimal. The following program helps you to convert
Character Class
Character Class  Character defines the forDigit();,digit()methods..how can these b used and wht is radix point signifies here...in the arguments of these two???..pls answer a code on this with radix .. are these methods also
Character class
Character class   Character defines the forDigit();,digit()methods..how can these b used and wht does radix point signify here.i want to knw what basically radix is??here in the arguments of these two???because i tried runnin
underscore as character
underscore as character  how can i consider _ as a character instead of wildcard character? my problem is like this i have 20 records as follows manohar 1234455 manohar 453635 manohar 345454 manohar_1234455 now when i am
Java Literals
, we can specify any value as a literal such as an integer. This character... or octal format. To indicate a decimal format put the left most digit as nonzero... to indicate hexadecimal format. Also we can indicate the octal format
How to convert entity character to html character
How to convert entity character to html character  How to convert entity character to html character
Wrapper Character class.
Wrapper Character class.  How do the methods 'isIndentifierIgnorable(ch)' and 'isISOControl(ch)' work?? while workin with 'Character' wrapper class...: This method returns true if the character may be part of a Unicode identifier; false
How to convert entity character to html character
How to convert entity character to html character  Please help me to "convert entity character to html character" in java. If possible please provide source code which take String as input and return as String
replace character in php
replace character in php  PHP script that replace character
DateInterval::format
-, % Literal % % Note: The prefix % is required in order for the format...DateInterval class in PHP DateInterval::format function is used for formatting the interval. It returns the format interval.  Description on PHP
image format
image format  what are the different format available in image
image format
image format  what are the different format available in image
Java Literals
, we can specify any value as a literal such as an integer. This character... or octal format. To indicate a decimal format put the left most digit as nonzero... digit to indicate hexadecimal format. Also we can indicate the octal format
Character Wrapper Class.
Character Wrapper Class.  what are Mirrored Unicode Characters?? and whats the use of "isMirrored(ch);method ??.where ch is any character argument.... There are special characters in UNICODE to achieve the RTL. Such character is the Mirroring
character as command line arguments
character as command line arguments  public class testing { public static void main(String args[]) { char a; a=args[0]; System.out.println("character is:"+a); } } what will be the above program output
How to display string or character
How to display string or character  how to print character or a word without using array concept
find the first character is vowel or not
find the first character is vowel or not  hi friend, can u plz send me javascript code for find the wether the first character is a vowel or not. 2) check wether the last character is same as the first character or not 3) check
php remove last character
php remove last character  to remove the last character, i used the trim function which is not working
password validation with special character
password validation with special character  how to validate password with special character using java script
JavaScript regex validate Character
Character.   <html> <head> <title>Character validation... Character value : "+name); return true; } alert("It is not valid character !"); return false; } </script> <
JavaScript regex validate Character
Character   <html> <head> <title>Character validation... Character value : "+name); return true; } alert("It is not valid character !"); return false; } </script> <
 

 

 

DMCA.com