其他

Java中 char 类型转 int

        System.out.println("输出'0'~'9'的所有char类型字符(还是char类型)");
        for(char ch = '0'; ch <= '9'; ch++) {
            System.out.print(ch + " ");
        }
        System.out.println();


        System.out.println("输出'0'~'9'的所有char类型字符的int型字面值(int类型)");
        for(char ch = '0'; ch <= '9'; ch++) {
            System.out.print(Character.getNumericValue(ch) + " ");
        }
        System.out.println();


        System.out.println("输出'0'~'9'的所有char类型字符的ASCII值");
        for(char ch = '0'; ch <= '9'; ch++) {
            System.out.print((int)ch + " ");
        }
        System.out.println();


        System.out.println("输出'A'~'Z'的所有char类型字符");
        for(char ch = 'A'; ch <= 'Z'; ch++) {
            System.out.print(ch + " ");
        }
        System.out.println();


        System.out.println("输出'A'~'Z'的所有char类型字符的ASCII值");
        for(char ch = 'A'; ch <= 'Z'; ch++) {
            System.out.print((int)ch + " ");
        }
        System.out.println();


        System.out.println("输出'a'~'z'的所有char类型字符");
        for(char ch = 'a'; ch <= 'z'; ch++) {
            System.out.print(ch + " ");
        }
        System.out.println();


        System.out.println("输出'a'~'z'的所有char类型字符的ASCII值");
        for(char ch = 'a'; ch <= 'z'; ch++) {
            System.out.print((int)ch + " ");
        }
        System.out.println();

这里写图片描述


Ping使用的协议?

ICMP是:Internet 控制信息协议(ICMP)是 IP 组的一个整合部分。通过 IP 包传送的 ICMP
信息主要用于涉及网络操作或错误操作的不可达信息。 ICMP 包发送是不可靠的,所以主机不能依靠接收 ICMP
包解决任何网络问题。ICMP不象TCP或UDP有端口,但它确实含有两个域:类型(type)和代码(code)。而且这些域的作用和端口也完全不同。
Ping用到的是ICMP协议。不是端口。


malloc/free与new/delete的区别

http://blog.csdn.net/hackbuteer1/article/details/6789164


分布式锁

分布式锁1 Java常用技术方案 http://www.cnblogs.com/PurpleDream/p/5559352.html
基于Redis实现分布式锁 http://blog.csdn.net/ugg/article/details/41894947


Redis 简介 http://www.runoob.com/redis/redis-intro.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值