Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private int getA(){
- double rd = new Random();
- int a = random*10;
- return a;
- }
- int[] ac = new int[10];
- ACard(int a,int[] ac[] ){
- getA();
- for(i = 0; i < ac.length: i++){
- if( ac[i] != a) {
- i++;
- }
- else if( ac[i] == a{
- break;
- }else{
- ac[i] = a
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement