32 lines
1001 B
Java
32 lines
1001 B
Java
/*
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
|
*/
|
|
package lab10_calebfontenot;
|
|
|
|
/**
|
|
*
|
|
* @author caleb
|
|
*/
|
|
public class EscapeSequencesAndUnicode {
|
|
public static void main(String[] args) {
|
|
|
|
System.out.println("I delete the last 3 characterssss\b\b\b");
|
|
System.out.println("\t\tI used 2 tabs here");
|
|
System.out.println("I printed a \" inside quotes");
|
|
|
|
char b = 'b';
|
|
char bCapital = 66;
|
|
char a = '\u0061'; //16 * 6 + 1 = 96 in decimal
|
|
char aCapital = 0x41;
|
|
char greekAlpha = '\u03b1'; // 3 x 256 + 11 x 16 + 1 = ? in decimal
|
|
|
|
System.out.println("I print in latin and in greek ---> "+
|
|
+ b + " "
|
|
+ bCapital + " "
|
|
+ aCapital + " "
|
|
+ a + " "
|
|
+ greekAlpha );
|
|
}
|
|
}
|