import java.util.Scanner; public class Main { static final int LIMIT = 7; public static void main(St

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Order a Similar Paper Order a Different Paper

import java.util.Scanner;

public class Main {
static final int LIMIT = 7;
   public static void main(String[] args) {
       // TODO Auto-generated method stub
       int[] play = new int[LIMIT];
       int num, i = 0;
      
       do {
           System.out .print(“please enter an integer between 1-49, inclusive: “);
           Scanner in = new Scanner(System.in);
           num = in.nextInt();
      
           if(num > 0 && num < 50 && $1$){
              
               $2$;
               i++;
           }
       }
       while ($3$);
       System.out.println(“your number are: “);
       for (int j = 0; j < LIMIT; j++){
           System.out.prinf(“%-3d”, play[j]);
           }
       }
  
   private static boolean isTaken(int[] play, int num){
       for( int i = 0; i < LIMIT; i++){
           boolean $4$;
           if ($4$){
               $5$;
           }
       }
       $6$;
      
           }
       }

from the code above match up each statement:

!isTaken(play, num) 1. $1$

return false 2. $2$

i<LIMIT 3. $3$

play[i] = num 4.$4$

return true 5.$5$

play[i] = = num 6.$6$