摘要:
New York is 3 hours ahead of California, but it does not make California slow. 纽约时间比加州时间早三个小时,但加州时间并没有变慢。 Someone graduated at the age of 22, but wait 阅读全文
摘要:
这里记录下在JavaScript中如何将数组拼接成一个字符串。 所谓的将数组拼接成一个字符串,意思就是将数组中的元素逐个拼接到一个字符串中,并加以特定的分隔符。在JavaScript中可以有两种方式,一种是Array对象提供的join()方法,一种是Array对象提供的toString()方法。 v 阅读全文
摘要:
在Java中循环遍历List有三种方式:for循环、增强for循环(也就是常说的foreach循环)和iterator遍历。下面就这三种方式尝试移除List中的元素,看看是否存在问题。 List<String> list = new ArrayList<>(); list.add("yanggb") 阅读全文