Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- import java.util.Arrays;
- import java.util.List;
- import java.util.Scanner;
- import java.util.stream.Collectors;
- public class Demo {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- char symbol = '$';
- System.out.println((int) symbol); //36
- int number = 65;
- System.out.println((char) number); //'А'
- System.out.println('A' + 'B'); //131
- System.out.println("" + 'a' + 'b'); //"ab"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement