package com.dao;
public class StringDemo {
// String 类型自增
public static String changeString(String a) {
//截取字符串前两位字符
String b = a.substring(0,0);
//截取字符串后位字符
String c = a.substring(0,a.length());
//转换为数字类型
int d = Integer.parseInt(c);
//对字符增加1,并拼接字符。
String z = b+(d+1);
System.out.println(z);
return z;
}
public static void main(String[] args) {
StringDemo.changeString("99");
}
}
最近下载更多
wyz072499 LV1
2020年11月24日
yangguangqiyue LV1
2020年6月24日
our_hj LV1
2019年6月18日
1179949807 LV1
2018年10月30日
zhete LV2
2017年2月27日
zhao_xf LV1
2016年10月19日
chnagjiangquan LV1
2016年5月16日
javaWeb12 LV29
2016年5月10日
mjtljx LV42
2015年5月14日
holysir LV28
2013年12月23日

最近浏览