Answer:
- public class FindDuplicate{
-
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
-
- int n = 5;
- int arr[] = new int[n];
-
- for(int i=0; i < arr.length; i++){
- int inputNum = input.nextInt();
- if(inputNum >=1 && inputNum <=n) {
- arr[i] = inputNum;
- }
- }
-
- for(int j =0; j < arr.length; j++){
- for(int k = 0; k < arr.length; k++){
- if(j == k){
- continue;
- }else{
- if(arr[j] == arr[k]){
- System.out.println("True");
- return;
- }
- }
- }
- }
- System.out.println("False");
- }
- }
Explanation:
Firstly, create a Scanner object to get user input (Line 4).
Next, create an array with n-size (Line 7) and then create a for-loop to get user repeatedly enter an integer and assign the input value to the array (Line 9 - 14).
Next, create a double layer for-loop to check the each element in the array against the other elements to see if there is any duplication detected and display "True" (Line 21 - 22). If duplication is found the program will display True and terminate the whole program using return (Line 23). The condition set in Line 18 is to ensure the comparison is not between the same element.
If all the elements in the array are unique the if block (Line 21 - 23) won't run and it will proceed to Line 28 to display message "False".
Answer:
A. Job growth in digital media has been powerful, while print-based media companies are cutting jobs at record levels.
Explanation:
Digital media is both inexpensive and instant. Based on the art and design, it might be less expensive than print media. Campaigns and content can be created, produced, and maintained far more quickly than printed media. Digital media is dynamic and may create user data. Digital media has had a significant influence on how we obtain our daily news. As it is more easy to read, most individuals choose to acquire their news via phone applications. With the increased usage of digital media as a news source, it is worth considering if print media will become outdated.
Print media has been established for decades, and it evolved as a dominant source of news. In the last decade, an increasing number of print media businesses have expanded out from regular print and begun providing news on digital services. Young millennials, in instance, appear to invest additional time online than reading printed publications.
Answer:
wireless information appliances and services affect the business use of the internet and the web in a positive way. Wireless information appliances and services affect the business use of the web and internet by allowing internet pretty much anywhere. Now days devices like cell phones can access almost everything a regular computer can access. The use of wireless information allows businesses to stay in constant contact with customers, employees, and suppliers.
If you’re asking what I think your saying I know comcast does