/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package algo; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Random; public class xboxapps { public static void main(String[] args)throws IOException{ String [] appArr = new String [8]; appArr[0]= " netflix" ; appArr[1]= " hbo go " ; appArr[2]= " call of duty mw2 "; appArr[3]= " music groove "; appArr[4]= " for honor "; appArr[5]= " destiny the collection "; appArr[6]= " youtube "; appArr[7]= " forza horizon 3 "; for(int sum =0; sum<8; sum ++){ System.out.println(appArr[sum]); }/// for loop int apps = 7; BufferedReader lineReader= new BufferedReader (new InputStreamReader(System.in)); apps= Integer.parseInt(lineReader.readLine()); String ans = ""; switch(apps){ case 1: ans=appArr[1];break; case 2 : ans= appArr[2];break; case 3 : ans=appArr[3];break; case 4 : ans=appArr[4];break; case 5 : ans= appArr[5];break; case 6 : ans=appArr[6];break; case 7 : ans= appArr[7];break; case 0 : ans=appArr[0];break; }/// switch case method String[] day = new String[7];{ day[0]=" monday "; day[1]=" tuesday "; day[2]=" wednesday "; day[3]=" thursday "; day[4]=" friday "; day[5]=" saturday "; day[6]=" sunday "; Random ran= new Random(); int b = 365; int counter= 0; while(counter