当前位置:网站首页>Summary of API method
Summary of API method
2022-07-26 07:32:00 【Mourning】
String Class common methods ; in length(); Returns the length of the current string object ~~ Query length char charAt(int index); Returns the current string object subscript int The character at index The character at ~~ Find the corresponding character according to the index int indexOf(int ch); Returns the index of the specified string that first appears in this string ~~ Find the corresponding index according to the characters int indexOf(String str,int fromIndex); Returns the index of the specified string that first appears in this string , Start with the specified index ~~ Find the corresponding index according to the characters ( Section ) String subString(int beginIndex); Returns the current string from beginIndex The string from the beginning to the end of the string ~~ Intercepting string String subString(int beginIndex,int endIndex); Returns the current string from beginIndex Start to endIndex-1 String ~~ Intercepting string boolean equals(Object obj); Compare this string to the specified object ~~ Compare bnoolean equalsIgnoreCase(String s); Put this String And another String Compare , Regardless of case ~~ Compare int compareTo(String another-s); Compare two strings in dictionary order ~~ Compare String concat(String str); The string str Connect to the tail of the current wear , Returns a new string ~~ String at connection location String replace(char oldCh,char newCh); The character of the string oldCh Replace with string newCh~~ Replace String toLowerCase(); Converts uppercase characters in a string to lowercase characters ~~ Replace String toUpperCase(); Converts lowercase characters in a string to uppercase characters ~~ Replace static String valueOf(type variable); Return variable variable Worth string form ,type It can be a basic type ~~ transformation static String valueOf(char[] date,int offset,int count); Returns an array of characters date From the subscript offset At the beginning count A string static String valueOf(Object obj); Returns the object obj character string String toString(); Returns the current string StringBuffer class ( You need to create an object , Call with object ): in length(); Returns the length of the string in the current buffer ~~ Query length char charAt(int index); Returns the character subscript in the current buffer intex The character at ~~ Find the corresponding character according to the index void setcharAt(int index,char ch); Subscript the string in the current cache index The character at changes the character ch Value int capacity(); Returns the current cache length StringBuffer append(Object obj); take obj.toString() The returned string is added to the end of the current string StringBuffer append(type variable); Convert the variable value into a string and add it to the end of the current string ,type It could be an array 、 Strings and various basic types StringBuffer insert(int offset,Object obj); take obj.toString() The returned string is inserted into the current character subscript offset It's about StringBuffer append(char[]str, type variable); Convert variable values to strings , Insert into the current character array with the subscript offset Location String toString(); Convert a variable string to an immutable string Collecttions Algorithm class : addAll(); Add elements sort(); Collection sorting reverse(); Set in reverse order shuffle(); Realize mixed arrangement replaceAll(); Realize the replacement of elements binarySearch(); Two points search ; swap(); Exchange elements at specified positions
边栏推荐
- Hcip--- BGP comprehensive experiment
- PR subtitle production
- 【Keras入门日志(3)】Keras中的序贯(Sequential)模型与函数式(Functional)模型
- 时间序列分析预测实战之ARIMA模型
- 微服务feign调用时候,token丢失问题解决方案
- Configure flask
- 3.0.0 alpha blockbuster release! Nine new functions and new UI unlock new capabilities of dispatching system
- 动态性能视图概述
- Come across the sea to see you
- MMOE multi-objective modeling
猜你喜欢

From boosting to lamdamart

Examples of financial tasks: real-time and offline approval of three scenarios and five optimizations of Apache dolphin scheduler in Xinwang bank
![Leetcode:1898. maximum number of removable characters [if you want to delete some IDX from a pile of things, don't use pop]](/img/e6/a17902a73ff6a9d4393c96a019b78e.png)
Leetcode:1898. maximum number of removable characters [if you want to delete some IDX from a pile of things, don't use pop]

Singles cup web WP

Redis系列之什么是布隆过滤器?

6. Backup and recovery of MySQL database

排序:归并排序和快速排序

Fang Wenshan, Jay Chou's best partner, will officially announce "Hualiu yuancosmos" on July 25

2021全球机器学习大会演讲稿

如何保证缓存和数据库的双写一致性?
随机推荐
dcn(deep cross network)三部曲
NLP natural language processing - Introduction to machine learning and natural language processing (3)
Sort: merge sort and quick sort
Open source management system based on ThinkPHP
HCIP---BGP综合实验
Common templates for web development
现在开发人员都开始做测试了,是不是以后就没有软件测试人员了?
Quantitative perception training in tensorflow2.x and x86 end evaluation of tflite
3.0.0 alpha blockbuster release! Nine new functions and new UI unlock new capabilities of dispatching system
OAuth2.0系列博客教程汇总
6、MySQL数据库的备份与恢复
pycharm常用快捷键
正则表达式规则以及常用的正则表达式
2019中兴捧月·模型压缩方案
Speech at 2021 global machine learning conference
ShardingSphere数据分片
tensorflow2.x中的量化感知训练以及tflite的x86端测评
NFT数字藏品系统开发:NFT数藏 的最佳数字营销策略有哪些
keras学习之:获取神经网络中间层的输出结果
如何关闭高位端口