假设有一个数组列表 List<String> newList = new ArrayList<String>;
intcompare =4; // the variable that I wanna compare with that "0" 现在,如果我想要与一个名为compare =4;的变量与那个"0“进行比较如何将arraylist<
int n ;为什么上面给出的是errorrequiredint,found string,而下面的工作正常?int n ;
n= Integer.parseInt( javax.swing.JOptionPane.showInputDialog(null,"enter a 3 digit no."));