... ArrayList에 있는 remove() 메소드를 써야 하는거 아닌가요?? 우선 클래스에선 public void removeBelowLimit(ArrayList sample, double limit) { ArrayList temp = new...
태그:
... List<Student> alist = new ArrayList<Student>(); alist.add(new Student("name0... if (s.name.equals(sreach_name2)) { alist.remove(i); System.out.println(s.name...
자바 로또번호 추출 메서드 질문입니다 import java.util.ArrayList; import java.util.Random; //lottoNumber[0]... 사이즈는 6이구요 Object n = lottoNumber.remove...
태그:
... i++) { if (max < scores.get(i)) max = scores.get(i); } scores.remove(max); return max; } public static Double findMin(ArrayList<Double> scores) { double min...
태그:
... equals(name))//삭제할 이름을 찾으면 { person.remove(i);//해당 위치 삭제 break; } } } public static void main(String[] args) { ArrayList<List...
태그:
... (String)list.remove(index number); 이렇게... list.remove(index number); 이렇게 하면 안되는것일까요? 또한... 왜 list.remove(index number);로 하지않고 String str = (String)...
태그:
... stack.pust("자바"); while(!stack.isEmpty()) { if... public class Mystack<E> { ArrayList<E> data=new... stack.remove(this.stack.size() - 1); throw new...
태그:
public static void mystery1(ArrayList<Integer> list) { for (int i = 0; i < list.size(); i += 2) { int element = list.get(i); list.remove(i); list.add(element); } System.out....
태그:
... //섞일 값 저장변수 ArrayList v = new ArrayList(); //Vector v = new Vector(); public void... //System.out.println(v.remove(i)); } textField_1.setText(""); //이름등록후 텍스트필드...
태그:
학생들의 정보를 ArrayList에 저장하고... throw/throws 문법 사용할 것 자바 고수님들... list.remove(i); }else{ System.out.println("찾는 학생이...
태그: