diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..9e64759 Binary files /dev/null and b/.DS_Store differ diff --git a/newFolder/.DS_Store b/newFolder/.DS_Store new file mode 100644 index 0000000..98e984a Binary files /dev/null and b/newFolder/.DS_Store differ diff --git a/newFolder/DemoChar.java b/newFolder/DemoChar.java new file mode 100644 index 0000000..ea53254 --- /dev/null +++ b/newFolder/DemoChar.java @@ -0,0 +1,18 @@ +/******************************* +* Author: Daniel Longman +* Demo the use of characters +*****************************/ + +public class DemoChar { + public static void main(String[] args) { + String title = "Demo Char:"; + System.out.printf("%S%n", title); // %S prints uppercase text + + char initial = 'D'; + System.out.printf("Initial: %c %d U+%04X %n", + initial, (int)initial, (int)initial); + + char colon = '\u003A'; + System.out.println("colon: " + (int)colon); + } +} \ No newline at end of file