Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Exercise4_9Unicode {
- public static void main(String[] args) {
- Scanner kb = new Scanner(System.in);
- System.out.println("Enter a character");
- String symbol = kb.nextLine();
- char sym =symbol.charAt(0);
- System.out.println((int)sym);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement