版权声明:所属版权归本人所有 https://blog.csdn.net/weixin_42295141/article/details/89879196
-
-
-
import java.text.ParseException;
-
import java.text.SimpleDateFormat;
-
import java.util.Calendar;
-
-
-
-
public static void main(String[] args) throws ParseException {
-
-
-
-
-
-
-
-
-
-
-
-
-
StringBuilder sb = new StringBuilder("abcde");
-
-
String s = sb.toString();
-
-
-
-
-
-
-
char[] charArray = ss.toCharArray();
-
byte[] bytes = ss.getBytes();
-
-
String bys = new String(bytes);
-
String chs = new String(charArray);
-
-
-
-
-
-
String aa1 = String.valueOf(an);
-
-
-
int bb = Integer.parseInt("123");
-
-
char charAt = "123".charAt(0);
-
-
-
-
-
-
String bigSmall = "AbCdEf";
-
String big = bigSmall.toUpperCase();
-
String small = bigSmall.toLowerCase();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-