Java 实例 - 链表修改
Java 教程
· 2019-02-11 14:41:58
以下实例演示了使用 listname.add() 和 listname.set() 方法来修改链接中的元素:
Main.java 文件
import java.util.LinkedList;
public class Main {
public static void main(String[] a) {
LinkedList officers = new LinkedList();
officers.add("B");
officers.add("B");
officers.add("T");
officers.add("H");
officers.add("P");
System.out.println(officers);
officers.set(2, "M");
System.out.println(officers);
}
}
以上代码运行输出结果为:
[B, B, T, H, P] [B, B, M, H, P]
点击查看所有 Java 教程 文章: https://codercto.com/courses/l/12.html
The Intersectional Internet
Safiya Umoja Noble、Brendesha M. Tynes / Peter Lang Publishing / 2016
From race, sex, class, and culture, the multidisciplinary field of Internet studies needs theoretical and methodological approaches that allow us to question the organization of social relations that ......一起来看看 《The Intersectional Internet》 这本书的介绍吧!