zoukankan      html  css  js  c++  java
  • 方法即用法

    sc.nextline()         指一行全部执行包括空格等.

    sc.next()  过滤空格等.

    string buffer类可修改容量.

    sc.set charat()修改指定索引处的字符.

    sc = sc.insert() 插入指定索引处的字符前面.

    sc = sc.reverse() 字符串反序;

    insert. 插入   reverse 反转

    sc = sc.delete() 删除子字符串

    delete 删除

    int lenght = sbf.length() 获取字符串序列的长度

    int index = sbf.indexof()获取字符串所在的索引位置

    String substr = sbf.substring()获取从。。。到。。。之间的字符串.

    String buffer tmp = sbf.replace() 将。。。到。。的字符替换成什么.

    String builder 类单线使用

    String buffer 类多线使用

    phone. matches() 是否匹配正则表达式是正确的手机号

    String regex  用于分割符号       int =(limit) 分割次数

    end swith (String  。。)判断后缀

    startswith(String prefix) 判断句首

    str. replace("一","壹")字符串替换;

    str.replaceAll("\s," "   ")

    id. substring(数字。数字)

    inderxof("  ") 查找字符串

    Arrarys.copyof 复制数组.

    Arrarys.sort() 排序方法

    Arrarys.fill(arr, int   value).

    Arrarys.fill(arr,int, fromindex,  ,  ).

    private  本类可见,  protected  本类,同包其他类或者子类可见.

    public  其他包的类或者子类都可见.

    Integer.MAX_VALUE  最大值

    Integer.MIN_VALUE  最小值

    Integer.SIZE    整数长度

    Integer.TYPE    类型显示

    Integer.toBinangString     二进制

    Integer.to  HexString    十六进制

    Integer.toOctaLString  八进制

    Byte    b = Byte. Valueof(bute   b);

    Byte    b = Byte. Valueof(string   s);

    Parse  Byte(string   s) 将string 值解析成Byte值

    Value of (string  str) 将string)  值解析成Byte对象.

    equals(object   obj)  判断俩个Byte对象是否相等

    byteValue()  返回此对象对应的byte值

    intValue()  返回此对象对应的int值

    double   value()  返回此对象对应的double值

  • 相关阅读:
    Hexo博客系列(二)-在多台机器上利用Hexo发布博客
    Hexo博客系列(一)-Windows系统配置Hexo v3.x个人博客环境
    [原创]VMware Workstation 14.1.3 Pro安装CentOS_7.6.1810
    [原创]前后端交互的方式整理
    [转载]白素贞的身世之谜
    [原创]存储过程里面的递归
    [原创]SpringBoot上传图片踩的坑
    [原创]markdown语法学习(commonmark)
    使用IntelliJ IDEA 前最好修改的配置
    软件开发资源下载
  • 原文地址:https://www.cnblogs.com/qq1534164223/p/11417495.html
Copyright © 2011-2022 走看看