package com.simon; import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class Study { public static void main(String[] args) { List<String> list = new ArrayList<String>(); String b = "abc,12,dad,dada";
Array 的操作方法和 String 的操作方法老是弄混>_<,下面就对于这两个对象的常用操作方法进行比较~~ Array ☞ 操作方法 concat():returns a new array comprised of the array on which it is called joined with the array(s) and/or value(s) provided as arguments. var new_array = old_array.concat(value1[,
传送门:http://acm.tzc.edu.cn/acmhome/problemdetail.do?&method=showdetail&id=4127 4127: Root of String 时间限制(普通/Java):1000MS/3000MS 内存限制:65536KByte 描述 The root of string S is a shortest string T such that S=TTTTT...T. That is, you can obtain S by conca
字符串就是用字符拼接成的文本值,字符串在存储上类似数组,在java语言中把字符串当做对象进行处理 创建字符串 package com.mingri.chapter_02; public class demo1 { public static void main (String[] args) { /* * 引用字符串常量 * */ String a = "时间就是金钱,我的朋友."; String b = "锄禾日当午"; String str1, str2; st