zoukankan      html  css  js  c++  java
  • 2014.8.14日结

    1.string,stringbuilder,stringbuffer的区别

    string类似于const变量

    stringbuilder线程不安全,stringbuffer是线程安全的

    参考链接

    http://www.cnblogs.com/A_ming/archive/2010/04/13/1711395.html

    http://www.cnblogs.com/springcsc/archive/2009/12/03/1616330.html

    2.java中String的split函数,limit参数的意义?

    3.pattern和matcher?

    按照道理matcher.matches,lookat返回true的find返回也是true

    但是用matches,lookat之后必须调用reset函数才可以

    如果find在matches之前就没有这种情况

    参考链接

    https://addleaf.com/articles/53de20dc1d4afed9518b4567

    4.matcher的group函数?

    group只算正则表达式括号里的东西

    (John)(.+?)就有group(2)

    John(.+?)就没有有group(2)

  • 相关阅读:
    Maria 与Ann的故事
    引语
    Preface
    Chapter 1 Foundation
    Roman to Integer
    Integer to Roman
    Container with most water
    palindrome number
    String to Integer (atoi)
    Reverse Integer
  • 原文地址:https://www.cnblogs.com/MuscleBJL/p/3913280.html
Copyright © 2011-2022 走看看