我想显示 中的所有元素ArrayList
,除了元素 10(这是单词“will”)。我该怎么做呢?当我运行下面的代码时,它什么也没显示。
private void practiceButtonActionPerformed(java.awt.event.ActionEvent evt) {
ArrayList <String> practice1 = new ArrayList();
Collections.addAll(practice1, "If", "she", "boarded", "the", "flight"
, "yesterday", "at", "10:00,", "she", "will", "be"
, "here", "anytime", "now.");
contentTextPane.setText(practice1.get(0+1+2+3+4+5+6+7+8+9+11+12+13));
}