Wesley13 Wesley13
3年前
java采坑之路
判断相等字符串判断相等        String str1  null;        String str2  "java金融";       // str1.equals(str2);  错误的写法        str2.equals(str1); // 常量写前面        Objects.equ
Wesley13 Wesley13
3年前
Java到底是引用传递还是值传递
前言前段时间在群里看到类似这样一个问题,下面的代码会输出什么呢?public void test(){   String str  "hello";   change(str);   System.out.println(str);}private void change(String str){  
Stella981 Stella981
3年前
Python3.x:正则 re.findall()的用法
Python3.x:正则re.findall()的用法概念: 语法:findall(pattern,string,flags0) 说明:返回string中所有与pattern相匹配的全部字串,返回形式为数组)示例:python3impo
Stella981 Stella981
3年前
Codeforces 492A
include<iostreaminclude<cmathinclude<cstdlibinclude<algorithminclude<stringinclude<string.hinclude<cstringusing namespace 
Stella981 Stella981
3年前
Spring RedisTemplate操作
@Autowired@Qualifier("redisTemplate")privateRedisTemplate<String,StringstringredisTemplate;publicvoidflushdb(){stringredisTe
Stella981 Stella981
3年前
Highcharts的使用(2个Y轴&折线图)
后台页面:List<Map<String,StringlistsaleService.getSaleAndBuyer();StringBufferdateArraynewStringBuffer();StringBuffersaleArraynewStringBuffer();StringBufferbuyerA
Stella981 Stella981
3年前
C++语言中反转字符串的函数strrev(), reverse()
1.使用string.h中的strrev函数1include<stdio.h2include<string.h3intmain()4{5chars"hello";6strrev(s);7puts(s);8retu
Wesley13 Wesley13
3年前
Java开发岗位面试题归类
一、Java基础1\.String类为什么是final的。(_1、由于String类不能被继承,所以就不会被修改,这就避免了因为继承引起的安全隐患;__2、String类在程序中出现的频率比较高,如果为了避免安全隐患,在它每次出现时都用final来修饰,这无疑会降低程序的执行效率,所以干脆直接将其设为fin
Stella981 Stella981
3年前
Lua 字符串查找函数 string.find(s, pattern [, init [, plain]] )【转】
函数原型string.find(s,pattern\,init\,plain\\)s:源字符串pattern:待搜索模式串init:可选,起始位置plain:我没用过①子串匹配:print(string.find("haha",'ah'))输出23注意:
Easter79 Easter79
3年前
Tcl命令操作实验
字符串操作:stringoptionstring1string2其中option可以是:compare 按字母顺序比较,小于则返回1,等于返回0,大于返回1match 判断是否匹配first判断string2中string1第一次出现的位置,如果没有则返回1last 和first作用相反,最后一次出现的位置,如果没有则返回