for (int i = 0; i < lotto.length; i++){
lotto[i] = (int)(Math.random()*45)+1;
for (int j = 0; j < i; j++){
if (lotto[i] == lotto[j]){
i--;
break;
}
}
}
num1.setText(Integer.toString(lotto[0]));
num2.setText(Integer.toString(lotto[1]));
num3.setText(Integer.toString(lotto[2]));
num4.setText(Integer.toString(lotto[3]));
num5.setText(Integer.toString(lotto[4]));
num6.setText(Integer.toString(lotto[5]));
일단 랜덤 번호를 생성하여 택스트뷰에 넣어 화면에 띄워놓았습니다.
생성된 이 번호들을 intent로 다음 화면에 listView로 지금까지 생성한
번호 목록을 띄우고 싶습니다.
listView에 띄운 번호들은 어플을 꺼도 저장이 되어있고
사용자가 선택하여 삭제 하고싶은데 어떻게 해야될까요??