Write a program that uses all the escape sequences to print the characters code in Java Programming
import java.util.*;
import java.io.*;
class q2
{
public static
void main(String args[ ])
{
System.out.println("escape
character sequences ");
System.out.println("\\n-new
line escape character sequences");
System.out.println("\\t-horizontal
tab escape character sequences");
System.out.println("\\b-back
space escape character sequences");
System.out.println("\\v-vertical
tab escape character sequences");
System.out.println("\\f-form
feed escape character sequences");
System.out.println("\\a-alert
noise escape character sequences");
System.out.println("\\o-optical escape character sequences");
System.out.println("\\r- escape character sequences");
System.out.println("\\q-question
mark escape character sequences");
}
}
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
Note: *Remove The Sentence on this program ___(Don't Missing Syntax required).
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment